|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Creating multiple text fields based on user input
Hi,
Is it possible to ask a user how many methods, for example, he has in his class (which he is uploading) and based on that number create x amounts of Method number x descriptions? If so, how? Thanks -Amir
__________________
I have summoned you here for a purpose |
|
#2
|
||||
|
||||
|
Yes, you can create this by the getting a user to input the number of text boxes element. Then based on the click of a link you call an AJAX function that would replace the another <div> with the render_partial() function.
Just give it a try or else i'll post a sample code here tomorrow. Quote:
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Ruby Programming > Creating multiple text fields based on user input |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|