jQuery selector

jQuery selector

Select all the element with the name property that begins with "national":

$("input[name^='nation']")

Try it out . . .

Definitions and usages

The selector selects each element with a specified property that begins with a specified string.


Grammar

$("[ attribute^ = 'value' ]")

parameter describe
attribute Required.Specifies the properties to look for.
value Required.The attribute value is specified in a string that starts.


jQuery selector