function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
karthikeya 2karthikeya 2 

How to enable and disable input text using jquery?

Hi All,
can any one help me by giving code for vfpage
1) should contain stndard controller and extension
2) when clicked on record it should get redirectto another page and based on id fields shoulld display in textbox in that page code should work
3) one input text and command Button
on loading page the textbox should be disable and when button is clicked it should get enabled. by using javascript.

please can any one give code for this.
 
Ravi NarayananRavi Narayanan
if you want to show/hide,then you can call a javascript from CommandButton. inside the javascript use the jquery method 
http://www.w3schools.com/jquery/jquery_hide_show.asp