Answers for "click button input field enable and disable"

0

How do I disable/enable a form element?

// Disable #x
$( "#x" ).prop( "disabled", true );
 
// Enable #x
$( "#x" ).prop( "disabled", false );
Posted by: Guest on May-20-2020
0

how to remove disable from input onclick

<script type="text/javascript">
    $(function() {
        // disable all the input boxes
        $(".input").attr("disabled", true);

        // add handler to re-enable input boxes on click
        $("td:has(.input)").click(function() {
            $(".input", this).removeAttr("disabled");
        });
    });
</script>
Posted by: Guest on May-19-2020

Code answers related to "click button input field enable and disable"

Code answers related to "Javascript"

Browse Popular Code Answers by Language