Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

java script using RadNumericTextBox

Posted on 2010-09-23
4
Medium Priority
?
966 Views
Last Modified: 2012-05-10
what is wrong with this: the text boxes are all RadNumericTextBox

 function calcTotal()
{    
document.getElementById('txtTotalPrice').set_value = document.getElementById('txtPricePerUnit').get_value * document.getElementById('txtQuantity').get_value

return true;
}
0
Comment
Question by:vbnetcoder
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 60

Expert Comment

by:HainKurt
ID: 33748648
what is set_value & get_value?
0
 
LVL 60

Expert Comment

by:HainKurt
ID: 33748659
maybe this is enough

<script>
function calcTotal(){
  document.getElementById('txtTotalPrice').value = document.getElementById('txtPricePerUnit').value * document.getElementById('txtQuantity').value;
}
</script>
0
 
LVL 60

Accepted Solution

by:
HainKurt earned 2000 total points
ID: 33750060
you should use

<script type="text/javascript">
var txtTotalPrice= $find("<%= txtTotalPrice.ClientID %>");
var txtPricePerUnit= $find("<%= txtPricePerUnit.ClientID %>");
var txtQuantity= $find("<%= txtQuantity.ClientID %>");
txtTotalPrice.set_value = txtPricePerUnit.get_value * txtQuantity.get_value
</script>

I guess ;)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question