0
I need a help, like I do to disable when the first checkbox is selected. On the link is an example of what was riding.
0
I need a help, like I do to disable when the first checkbox is selected. On the link is an example of what was riding.
0
When clicked, use the property checked
same to set the property disabled
of the other checkboxes, making a find on them. It is worth mentioning that one should use the opposite of the Boolean value, because you want a negative logic.
$('.check').click(function(){
$(this).closest('td').find('.son').prop('disabled', !$(this).prop('checked'));
});
Mind inserting the class son
in the checkbox you want to be disabled.
I made an example on this link http://jsfiddle.net/welguri/s8pnsm4e/ @Luishenrique I think something is missing.
I had done in place here using a div to involve the checkbox, I switched to td according to your html, must be something in it. @Welguri
Updated code, test now @Welguri
Thank you @Luishenrique
If the answer was helpful, mark it as ok. @Welguri
Browser other questions tagged javascript jquery
You are not signed in. Login or sign up in order to post.
"I need a help, how do I disable when the first checkbox is selected". Disable what ?
– PauloHDSousa
Can you give more information about the problem? What you want to disable at the time who is selected?
– Luis Henrique
When you click the view checkbox, the edit and delete checkbox has to be rehabilitated and if the view checkbox is unchecked the edit and delete checkbox has to be disabled. @Luishenrique
– Weliton Figueiredo
Would you rather I do p/you or tell you how to do?
– PauloHDSousa
@Paulohdsousa the way you can help me, because I will have to study the code. I am new to jquery
– Weliton Figueiredo