3
I have a <select>
which is powered by database data. I need to manipulate this select and multiply it in case the user wants to enter more different data.
I also need to change the "name" attribute of each <select>
to be able to pick up the values correctly in the $this->request->data
because I implode the data.
I have a function that runs in pure php, but now I’m trying to redo on Cakephp. I’ve never done anything with Javascript or Jquery in the Cakephp, so I’m kind of lost in it. My main question is how to use Javascript with Cake. I have a script.js file that I use in the application with pure php. Now I want to use this with Cakephp, but I don’t know how to do it. I’ve already put the file in the webroot/js folder, but I don’t know how to do it from there.
possible duplicate of Adding and removing fields generated via Cakephp, dynamically?
– Wallace Maxters
is similar because I was directed to ask a new question.
– Paulo Nascimento
Paul, maybe you can add in your question the difference in relation to this other and even this code you said you have but want to use the
CakePHP
for that reason.– Paulo Rodrigues