mardi 9 mai 2017

how to show anchor tag only if all the checkboxes in a row of a dynamic table are checked in jquery?

i'm working on a table where rows are being generated dynamically from db and each row has about 11 table cells. 10 table cells contain a checkbox in them while there is an anchor tag in the 11th cell. What i want to do is to show the anchor tag only when all 10 checkbox of a row are checked. if i use class of the anchor tag in jquery then they become visible for all the rows when i check checkboxes of any 1 row and if i use id of anchor tag then only the anchor tag of first row becomes visible and then jquery isn't applied on the rest of the rows. how can i use the dynamic ids of the dynamically generated rows somehow so that jquery is applied on each row separately? i'm very new to jquery, please help me out. thanks in advance




Aucun commentaire:

Enregistrer un commentaire