0
   

Using javascript to get value of textbox

 
 
ykahn
 
Reply Sun 24 Oct, 2010 06:20 am
I have a form that uses a bunch of radio buttons, where I give each radio button a value. The radio button that is marked other has a textbox next to it and we need that amount as the value of the radio button. How do we do this?
here is a piece of the sampled code:
<input name="Ecom_Cost_Total" type="radio" class="donate_check" value="50" />
<div class="donate_title">Friend </div>
<div class="donate_amount"> $50</div>
</div>
<div class="donation_option">
<input name="Ecom_Cost_Total" type="radio" class="donate_check" id="other" value="other" />
<div class="donate_title"> Other </div>
<div class="donate_amount">
<input name="donate_amount_us" type="text" id="donate_amount_us" size="5" maxlength="5" /></div>
The form is taking the values frm "Ecom_Cost_Total" and is then saying that the amount is invalid.
Help?
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Question • Score: 0 • Views: 2,017 • Replies: 0
No top replies

 
 

Related Topics

 
  1. Forums
  2. » Using javascript to get value of textbox
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 05/10/2024 at 03:19:35