change the values of text box when page load using jquery
I need to change the value of dependent text box when the page load,I did with after the keyup, change and mouseover method, but exactly what i need is changing of values when page load using jquery.
here this is my following code,Please help me guys..
-
- $(document).ready(function(){
-
- $("#product").on("keyup change mousemove", '.product-item select, .product-item input', function() {
- var $line = $(this).parents('.product-item');
- var currname = $line.find('.dropdownbox1 option:selected').text();
- var prodname = $line.find('.dropdownbox2 option:selected').text();
- var option1 = $line.find('.textbox1').val();
- var option2 = $line.find('.textbox2').val();
-
-
- var totalbuy = option1+option2;
- $line.find(".orderbox4").val(totalbuy.toFixed(2));
});
});