An Even Shorter Attribute Function

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()

Sorry, Comments are Closed.

You'll have to take it up with the author...