I have a hidden field
<input type = 'hidden' name = "test1" id = "test1" value ="<?php echo $val ?>" >
Now Yam applies disabled attribute via jQuery. Will the Disabled attribute work for hidden fields or will it only work for input type = text
$('#test1').attr('disabled','disabled'); if($("#radio_no:checked") && $("#someelement").attr('value')==="abc"){ $("#test1").attr('disabled', true); $("#test1").attr('class', 'TextBox'); }
source share