Multiplication with Ajax

I am working in a website where i am integrating order and payment gateway. I have three textbox. Textbox1, where i have the number of quantity and Textbox2, where i have cost of one order and in Textbox3 i am displaying the Total cost of Order. Now What i have to do is to get the Total order cost, depending upon number of order without page load with jquery or Ajax.

I have tried as follows, But it wont work.

$(document).ready(function() {


    var valone = $('#Textbox1').val();
    var valtwo = $('#Textbox2').val();
    var total = ((valone * 1) * (valtwo * 1));
    $('#Textbox3 ').text(total);



$('#Textbox3 ').val(total);

.val(value) Set the value of each element in the set of matched elements. You can read more on this here

Let me know if this helps.

Need Your Help

MySQL cannot find data file for a load operation

mysql sql load-data-infile

I would like to load a data file into MySQL using the following command,

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.