Javascript Ajax jQuery Html PHP Example Quiz New MORE
Need a Website Or Web Application Or Any Help.Contact Us: +91 9437911966 (Whatsapp) Note: Paid Service

Disable enable input field in jQuery

In this example i am going to discuss how to disable enable input field in jQuery with simple example.


<!DOCTYPE html>
<script src=""></script>
<input id="item_price" class="grey" value="100.00" disabled="disabled" />
<input type="button" id="Button" value="disable/enable" />
$("#Button").click(function() {
$("#item_price").attr('disabled', !$("#item_price").attr('disabled'));

Run it yourself