1
I’m learning the web world, so I’m having a hard time even checking to see if there are any similar questions, if I have a similar answer in the forum, I’ll pass on the apology. Now I go to doubt. (I took a long time looking for something, I did not find.)
I have a TAG with two class
in a table.
<td class="js-selector-user hide"></td>
When I click on an input type="radio" class=".js-selector-radio"
, i need to remove the Hide class.
I did jquery that way:
$(function(){
var selectRadio = $('.js-selector-radio');
var selecUser = $('.js-selector-user');
selectRadio.click(function() {
selecUser.slideUp('fast', function(){
selecUser.removeclass('.hide').slidedown('fast');
}) ;
});
});
Do not remove the class :(
your
removeClass
ta spelled wrong, plus no need to put the class selector when removing it. Correct is:selecUser.removeClass('hide').slidedown('fast');
,– Jorge.M
Jorge, you forgot to take the point off
.hide
– fernandosavio
Well noted @fernandosavio. Edited.
– Jorge.M