You need to sign in to do that
Don't have an account?

How to enable and disable input text using javascript ?
Hi All,
can any one help me by giving code for vfpage
1) should contain stndard controller and extension
2) 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.
can any one help me by giving code for vfpage
1) should contain stndard controller and extension
2) 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.
Please try with below code it will help.
You can try with below page code which is implemented with JQuery .
One thing some times the JQuery librery will not available in web .So better you can download the Librery and add in static resource .
Here I have given one example how to add librery in static resource .
<script src="{!URLFOR($Resource.JQuery19UI, '/jquery-ui-1.9.2.custom/js/jquery-1.8.3.js')}"/>
<script src="{!URLFOR($Resource.JQuery19UI, '/jquery-ui-1.9.2.custom/js/jquery-ui-1.9.2.custom.min.js')}"/>
Here my static resource name is JQuery19UI.I have changed the code as static resource will not avialble for you .
You can download the Librery from below link .
http://jqueryui.com/download/
Don't forget to select as best answer if it helps to solve your problem .
if picklist value rating - 'hot' ( button should be enable or user can click) if rating other than warm button should or disable.