Wednesday, 12 March 2014

Enable and disable checbox using jQuery

Enable and disable checbox using jQuery
$('button').click(function(){
var i = $('input');
if ( i.is('[disabled]') )
i.attr('disabled',false)
else
i.attr('disabled',true);
})