January 15, 201313 yr How would I have the value of one text <input> tag value = another text <input> value on the same page? EDIT: If possible, I also need to have a separate input = 5% of another javascript variable. Thanks Edited January 15, 201313 yr by wellerweb
January 15, 201313 yr //jQuery $('#text1').val($("#text2").val()); //javascript version document.getElementById("text1").value = document.getElementById("text2").value; For the second part, just set the value of your input to the variable you have created for the calculation.
Create an account or sign in to comment