I\'m trying to use a jQuery selector that finds all input fields with a specific name:
$(\'input[name=Filter\']).click(function() {
// do something
});
<
Based on my comment to the question I can confirm that this does work...
$('input[name="Parent.Filter"]').click(function() {
});
Working example here
This works, you just need "" around the name:
$('input[name="Parent.Filter"]').click(function() {
});
Use $("input[name='Parent.Filter']")
Quotes are mandatory, and in this instance it won't work without them.
$('input[name="Parent.Filter"]').click(function() {
});
From the API reference:
value An attribute value. Quotes are mandatory.
Here's a jsFiddle that demonstrates this.