jquery add disabled to button
$("#button").attr("disabled", true);
jquery add disabled to button
$("#button").attr("disabled", true);
jQuery disable and enable input
//jQuery 1.6+ use:
$("#inputID").prop('disabled', true); //disable
$("#inputID").prop('disabled', false); //enable
//jQuery 1.5 and below use:
$("#inputID").attr('disabled','disabled'); //disable
$("#inputID").removeAttr('disabled'); //enable
How disable button jquery
$( "button" ).prop( "disabled", true );
jquery remove disabled property from button
$('#edit').click(function(){ // click to
$('.inputDisabled').attr('disabled',false); // removing disabled in this class
});
jquery disable button
$('.class').prop("disabled", true);
$('#id').prop("disabled", true);
// As function
const disable = (id) => $(`#${id}`).prop("disabled", true);
jquery disable button
function disable(i){
$("#rbutton_"+i).prop("disabled",true);
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us