• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 979
  • Last Modified:

java script using RadNumericTextBox

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;
  • 3
1 Solution
HainKurtSr. System AnalystCommented:
what is set_value & get_value?
HainKurtSr. System AnalystCommented:
maybe this is enough

function calcTotal(){
  document.getElementById('txtTotalPrice').value = document.getElementById('txtPricePerUnit').value * document.getElementById('txtQuantity').value;
HainKurtSr. System AnalystCommented:
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

I guess ;)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now