The jQuery odd selector is used
to filter out the odd elements
in a page.
$("input:odd")
In this post we shall see on how to use the jQuery odd selector to filter out all the odd elements in a page.
The following script filters out all the odd elements in a page
$("input:odd")
In this post we shall see on how to use the jQuery odd selector to filter out all the odd elements in a page.
The following script filters out all the odd elements in a page
$("input:odd").each(function() {
alert('Hierarchy
- Odd:' + $(this).attr('id'));
});
The following script filters out the odd elements in a page on click of the btnHierarchySelector button.
$('#btnHierarchySelector).click(function(event) {
event.preventDefault();
//
// Hierarchy - Odd
The following script filters out the odd elements in a page on click of the btnHierarchySelector button.
$('#btnHierarchySelector).click(function(event) {
event.preventDefault();
//
// Hierarchy - Odd
$("input:odd").each(function() {
alert('Hierarchy
- Odd:' + $(this).attr('id'));
});
});
});
Related Post
jQuery hierarchy selector
jQuery first selector
jQuery last selector
jQuery even selector
jQuery odd selector
jQuery only-child selector
jQuery parent selector
jQuery nth-child selector
jQuery index :gt selector
jQuery empty selector
jQuery first selector for Textbox
jQuery last selector for Textbox
jQuery first selector for Dropdown
jQuery last selector for Dropdown
jQuery hierarchy selector Example
jQuery hierarchy selector
jQuery first selector
jQuery last selector
jQuery even selector
jQuery odd selector
jQuery only-child selector
jQuery parent selector
jQuery nth-child selector
jQuery index :gt selector
jQuery empty selector
jQuery first selector for Textbox
jQuery last selector for Textbox
jQuery first selector for Dropdown
jQuery last selector for Dropdown
jQuery hierarchy selector Example
2 comments:
Great work. And wonderful choice of equipment to work... Fantastic!! RS Money
gw2 Gold
Thanks for the post that was so very informative, I’ve learned a lot. Keep up the good work.Iphone 4 case I need more information about it can you do that? Thanks.
Post a Comment