On Wed, Sep 8, 2010 at 11:41 AM, EASWAR CHOWDARY <[email protected]> wrote:
> Hi all I am new to cakephp. I had an question and answers controllers. In
> the questions view i had to place the answer option textboxes dynamically .
>
> I must have a select box for no.of options to the question If i change the
> value of it i need to get that number of textboxes for the options please
> help.

This shouldn't require an AJAX request but just straight javascript.
Just set an onchange handler for the no. of options list to create the
required text boxes and insert them into the page. Make sure, though,
that you use Cake's naming convention when creating the text elements.
Otherwise, you might not receive $this->data according to your
expectations.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to