Results 1 to 2 of 2
  1. #1
    codeflip is offline Member
    Join Date
    Mar 2009
    Rep Power

    Default Button Functions

    I need to add the number values of 2 texts boxes and make it appear in the third text box

    how would one do this?


    XML Code:
    	<script language="javascript">
    	function buttonclick()
    		<h1><b><u>Rabbits vs. Foxes Population</u></b></h1><br>
    			<form name="forma">
    <table border="1" width="50%" cellspacing="0" cellpadding="1">
    				<td>Number of Rabbits</td>
    				<td><input name="numberofrabbits" type="text" size="6"></td>
    				<td>Death Rate</td>
    				<td><input name="deathrate" type="text" size="6"></td>
    				<td>Birth Rate</td>
    				<td><input name="birthrate" type="text" size="6"></td>
    				<td>No. of Foxes</td>
    				<td><input name="foxes" type="text" size="6"></td>
    				<td>Rabbit Conditions</td>
    				<td><Input type = radio Name = r1 Value = "N">Normal
    					<Input type = radio Name = r2 Value = "F">Fires
    					<Input type = radio Name = r3 Value = "E">Excellent</td><br>
    				<td>Graph the Rabbits</td>
    				<td> <input type="checkbox" name="graphrabbits" value="checked"></td>
    				<td><input type="button" onclick="buttonclick()" value="One Year Passes" size="30"></td>
    				<td>Years<input name="years" type="text" size="6"></td>

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Blog Entries
    Rep Power


    First thing I'd do would be to ask this question in a javascript forum. Unfortunately this is a Java forum, a totally different beast.

    Best of luck.

Similar Threads

  1. Calling java functions from c++
    By khajalid in forum New To Java
    Replies: 13
    Last Post: 10-12-2010, 10:50 PM
  2. Functions in jsp
    By samson in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 03-25-2009, 10:04 PM
  3. problems with functions
    By kri in forum New To Java
    Replies: 6
    Last Post: 02-07-2009, 08:09 PM
  4. HashMap functions get vs put
    By tahni in forum New To Java
    Replies: 3
    Last Post: 01-14-2009, 06:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts