witnot1 Posted March 12, 2011 Share Posted March 12, 2011 Hi, I am trying to limit an user's input based on a text area size which is 180px. Is this even possible? There are ways to read how many linebreak's (\n) there are in a text area, but a long sentence will read as one linebreak. Any Ideaas? Quote Link to comment https://forums.phpfreaks.com/topic/230410-limit-text-area-based-on-input/ Share on other sites More sharing options...
denno020 Posted March 12, 2011 Share Posted March 12, 2011 Best way that I can think of doing this is using javascript. Here is a good video showing you how to do just that: Denno Quote Link to comment https://forums.phpfreaks.com/topic/230410-limit-text-area-based-on-input/#findComment-1186559 Share on other sites More sharing options...
witnot1 Posted March 12, 2011 Author Share Posted March 12, 2011 Thanks Denno, I think it is very difficult to limit the input by the text area's size even in jQuery. Looks like remaining character count is part of the solution. Quote Link to comment https://forums.phpfreaks.com/topic/230410-limit-text-area-based-on-input/#findComment-1186564 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.