Page 1 of 1

button click

Posted: Wed Jul 25, 2012 4:53 am
by pascale

Code: Select all

<form name="fields" method="post">
<tr><td><select name="month" id="month">
    <option value="0">Month:</option>
    <option value="1">January</option>
    <option value="2">February</option>
    <option value="3">March</option>
    <option value="4">April</option>
    <option value="5">May</option>
    <option value="6">June</option>
    <option value="7">July</option>
    <option value="8">August</option>
    <option value="9">September</option>
    <option value="10">October</option>
    <option value="11">November</option>
    <option value="12">December</option>
   </select></td>
    <td><select name="year" id="year">
    <option value="0">year:</option>
    <option value="1" selected="selected">2012</option>
    <option value="2">2013</option></select></td>
    <td><select name="project" id="project">
    <option value="0">Project name:</option>
    <option value="1">Challengers</option>
    <option value="2">ERC website</option></select></td>
    <td><select name="grade" id="grade">
    <option value="0">Grade:</option>
    <option value="1">Kinder Garten</option>
    <option value="2">Grade 1</option></select></td>
    <td><input type="text" name="nbofhr"/></td>
    <td><input type="button" name="addnew" value="+" onClick=""/></td>
</tr> 


i have this code in php..and i want on button click to show the form once again.each time the user clicks add new i want to show the form.how can i do that?thank you

Re: button click

Posted: Wed Jul 25, 2012 1:59 pm
by tr0gd0rr
For one, your form cannot be between tr elements. it needs to be outside the table or within a cell. Second, what do you mean "show the form". It seems that the form is already visible to the user. Do you need to display a copy of the form somewhere?

Re: button click

Posted: Fri Jul 27, 2012 2:48 am
by pascale
yes i want on button click to show the form another time on the sam epage under the first form.is there and jquery or something to do that.thanks

Re: button click

Posted: Fri Jul 27, 2012 5:32 am
by social_experiment
This url might be of some assistance to you
http://www.javascriptkit.com/javatutors/dom2.shtml

Re: button click

Posted: Fri Aug 03, 2012 1:05 am
by pascale
[text]thank you.it worked great[/text]