Enable/Disable text field according to radio button.
If I select click Personal Account radio button it will display First Name and Last Name fields,
If I select Business Account radio button it will display Company Name field.
you need to call function when radio button is clicked.
In This example when radio button is clicked radioBtnCheck() will run.
As well as you have group the text fields that are going enable or disable using div id .
According to this example company div id contain company name label and text field.
In here when radio button on click it will redirect to this function and check the radio button id,according to selected radio button we can handle what fields we have to enable or disable.
In This example when radio button is clicked radioBtnCheck() will run.
As well as you have group the text fields that are going enable or disable using div id .
According to this example company div id contain company name label and text field.
In this div id it contains first name and last name fields.
After that we have to write java script function to enable or disable the fields.
0 comments:
Post a Comment