Tuesday, 22 October 2013

jQUery - read textbox value using its name

This can be done using jQuery's Attribute Equals Selector [name="value"] syntax. For example if name of the textbox is "email" then below script can be used to read the value.

$('input[name="email"]').val()

No comments:

Post a Comment