0
   

i wanna ask how to take value and multiply

 
 
thanzaw
 
Reply Wed 10 Oct, 2012 07:01 am
<body>
<input type="textbox" value="firstnumber" onfocus="this.value=' ' ";
onblur="if(this.value=='') this.value='firstnumber';"/>X
<input type="textbox" value="secondnumber" onfocus="this.value=' ' ";
onblur="if(this.value=='') this.value='secondnumber';"/>=
<input type="textbox" value="Result" onfocus="this.value=' ' ";
onblur="if(this.value=='') this.value='result';"/>
</body>
which event i have to use and how to multiply these tw0 value without using button
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Question • Score: 0 • Views: 1,183 • Replies: 1
No top replies

 
Robert Gentel
 
  2  
Reply Wed 10 Oct, 2012 07:53 am
@thanzaw,
You should be more specific, for example can you use a link with an onclick event instead of a button? That would seem pointless as a test question but that's one option.

You already have onblur events so you know about those and probably know about onfocus, there is also onchange you can use (e.g. put it on all of the inputs and make the script calculate each time any value is changed).
0 Replies
 
 

Related Topics

 
  1. Forums
  2. » i wanna ask how to take value and multiply
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 04/26/2024 at 11:01:26