[jQuery] .attr not working
if($('input.student_check:checked').length > 0)
{
$('#birth_date').removeClass('hide');
$('#birth_date').attr('disabled', '');
$('label[for=birth_date]').removeClass('hide');
}
else
{
$('#birth_date').addClass('hide');
$('#birth_date').attr('disabled', 'disabled');
$('label[for=birth_date]').addClass('hide');
}
the first .attr that removed the disabled works fine but the second one does
not work, it does not get added back, anything wrong with my code?
--
View this message in context: http://www.nabble.com/.attr-not-working-tp15717645s27240p15717645.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.