I have a layout similar to this
<div id="..."><img src="..."></div>
I would like to use a jQuery selector to select the child
img inside of the
div on click
To get the
div, I've got this selector:
How do I get the
img with a selector?
The jQuery constructor accepts a 2nd parameter which can be used to override the context of the selection.
Which is the same as
If the imgs are direct descendants of the clicked element, you can also use:
I have two radio buttons and want to post the value of the selected one, how can I get the value with jQuery?
I can get all of them like this:
But how do I know which one is selected?
To get the value of the selected radioName item of a form called 'myForm':
I am after documentation on using wildcard or regular expressions (not sure on the exact terminology) with a jQuery selector.
I have looked for this myself but have been unable to find information on the syntax and how to use it. Does anyone know where the documentation for the syntax is?
EDIT: The attribute filters allow you to select based on patterns of an attribute value.