Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Hide a row when input disabled Reply To: Hide a row when input disabled

#239651
Kognak
Participant

I think I understand what’s wrong !

Codepen again :
http://codepen.io/Kognak/pen/yOMYRp

The code doesn’t specify to apply that logik, that rule, only for each tbody after each tbody.

On my Codepen, I’ve the first tbody with half rows activated, other half disabled, and the second tbody with 100% rows disabled. But for that’s still input not disabled > 0, that’s why it displays all the tbodies !

The solution would be : dear Jquery, check the input disabled on the rows of each tbody, if the row has input disabled, then hide it AND if one tbody has at least 1 row not disabled, display this tbody, if not, hide this tbody.

And of course the question is : how to achieve this !

Did I understand and set the problem correctly ? :)

PS : presently I feel I learn a lot !