Tuesday 16 March 2010

jQuery string length

How can I get the length of text entered in a textbox using jQuery?

$("#myTextbox").val().length; will give the length of text in myTextbox.

No comments:

Post a Comment