Link to home
Start Free TrialLog in
Avatar of activesoftware
activesoftware

asked on

Onclick Increase textfields in same form

dear ,

i have four checkboxes.

checkboxes are not constant it comes from DB.

i want if user click on first checkbox then two textbox come below and if user click on next checkbox acording to check box clicked new text box comes then after so on when user click on the checkbox then new textboxes comes as per db conditions ( condition is this - on click every checkbox there's condition in DB that one textbox comes or two )

so i want every checkbox click new text box coming without hiding lastone.

now i am useing jquery on every click textboxes coming right but when we click next checkbox previous one onclcik result hide and newone come. i try on web lot.

not found so please help me.

Thanks
Avatar of Gurvinder Pal Singh
Gurvinder Pal Singh
Flag of India image

It should be easy, you just have to assign the class to checkbox dynamically depending upon that condition.
Then, when you click on the checkbox, you can check the class of that checkbox and decide whether you want to display 2 checkbox or 1
Avatar of activesoftware
activesoftware

ASKER

dear

when user click on checkbox then we need to send call to DB then after that from DB we can check ( from checkbox Id ) which condition is applicable for this checkbox ( there's two conditions -

1. checkbox no 1. - when click - need to show 3 textbox in horizontal line
2. checkbox click then only show two checkbox

checkbox can come in alternate way. only way to show need to check from DB then after click we need to check conditions from two tables )

so please tell me jquery to generate text boxes dynamically.

Thanks  
ASKER CERTIFIED SOLUTION
Avatar of Gurvinder Pal Singh
Gurvinder Pal Singh
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Not Proper Answer