Return to Snippet

Revision: 56341
at March 22, 2012 22:12 by artaserse


Initial Code
//jQuery < 1.6
jQuery('input[name=name_of_the_input]').attr('disabled',true)

//jQuery >= 1.6
jQuery('input[name=name_of_the_input]').prop('disabled',true)

Initial URL

                                

Initial Description
simply disable an input (type=text) using Jquery.

Initial Title
disable input with Jquery

Initial Tags
jquery

Initial Language
jQuery