Jquery access specific element from multiple elements with same classes

60 Views Asked by At

Hello I'm trying to implement multiple Kendo multiselect and both of them have the same class(.k-multiselect .k-input) that is generated by kendo at runtime, I'm trying to access the second multiselect using the
var input = $('.k-multiselect .k-input').val(); var input = $('.k-multiselect:nth-child(2) .k-input').val(); and var input = $('.k-multiselect .k-input:nth-child(2)').val();

But when I remove the other multiselect and try to access it using var input = $('.k-multiselect .k-input').val(); it is working as expected.

Any idea on how to access the specific elements, My second multiselect has a attribute aria-describedby="mtuProeducts_taglist"

0

There are 0 best solutions below