#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2004
    Posts
    366
    Rep Power
    11

    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. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2006
    Location
    Chandigarh, India
    Posts
    311
    Rep Power
    366
    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.
    Originally Posted by amoo3
    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

IMN logo majestic logo threadwatch logo seochat tools logo