95059/how-to-add-a-readonly-attribute-to-an-input
Hello,
For jQuery <1.9
$('#inputId').attr('readonly', true);
For jQuery 1.9+
$('#inputId').prop('readonly', true);
Hii, Remove an option: $("#selectBox option[value='option1']").remove(); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <select name="selectBox" id="selectBox"> ...READ MORE
To disable all form elements inside 'target', ...READ MORE
In this example the form input text ...READ MORE
Without using any extra plugins, var myOptions = ...READ MORE
Hello @kartik, Try using click instead of focus. It seems to ...READ MORE
Hii, Try this: $.ajax({ url:url, type:"POST", ...READ MORE
Hii, Say you had radio buttons like these, ...READ MORE
Hello, npm view <package> version - returns the latest ...READ MORE
Hello @kartik, You can implement the Array.insert method by doing ...READ MORE
Hello @kartik, Using jQuery Disabling a html button $('#Button').attr('disabled','disabled'); Enabling a ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.