Form validation is a very important part of any web application. You have to make sure that your users are going to enter a numerical value when they put data into a quantity field (You don’t want them to enter “one” into a quantity field, unless of course you want to try and handle that… Read more »
Posts Tagged: attribute
As you say in yesterdays tutorial you can retrieve the value of a text box by using the following code: $(“#sizechangebox”).attr(“value”) However there is an even shorter way to accomplish the same thing. $(“#sizechangebox”).val()
The jQuery Attributes function provides a quick and easy way to retrieve and manipulate attribute data in your HTML document. An example of an attribute would be the title of an anchor element, or the name value of an input element.