Jquery Select a tr by an hidden input field value inside a td
I’m a beginner with jQuery language and I’ve got a question.
I’ve got a Table in my website like this:
as you can see rows have an hidden input associated to a typology (type1=>1).
with a dropdown selector i choose a value:
With the event OnChange in a filter i want to select all the rows in the table that have the input field value = to the one selected in the dropdown
You could combine an attribute selector and the
In the snippet above,
$tr is a jQuery object that contains all the desendant
tr elements that contain an element with a class of
.typology and a value attribute corresponding to the selected value.