button click

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
pascale
Forum Newbie
Posts: 10
Joined: Wed May 16, 2012 1:40 am

button click

Post 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
Last edited by pickle on Wed Jul 25, 2012 9:52 am, edited 1 time in total.
Reason: Cleaning up tags
User avatar
tr0gd0rr
Forum Contributor
Posts: 305
Joined: Thu May 11, 2006 8:58 pm
Location: Utah, USA

Re: button click

Post 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?
pascale
Forum Newbie
Posts: 10
Joined: Wed May 16, 2012 1:40 am

Re: button click

Post 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
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: button click

Post by social_experiment »

This url might be of some assistance to you
http://www.javascriptkit.com/javatutors/dom2.shtml
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
pascale
Forum Newbie
Posts: 10
Joined: Wed May 16, 2012 1:40 am

Re: button click

Post by pascale »

[text]thank you.it worked great[/text]
Post Reply