almost 11 years ago
JQuery has loads of selectors that can be used to select an HTML Element from a page.
One of the common scenario with development for even a simple case of validation requires to check for input fields and to do so we can use a selector that selects the Input field with a given name.
Using the selector we can select a field in HTML a in example below.
<input type="text" name="myField" value="myValue" />
To get the value of this Input we can use code
$("input[name='myField']).val() // which is myValue
Hope this helps.
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Terms of Service
| © copyright 2023 FindNerd.com. All rights reserved.
Sign up using