help: dynamic text controlled from other text field

liunx

Guest
I have a couple input text boxes. One with the discount that the user will input and the other will calculate the new total. I want the new total text box to change whenever the user changes the discount text box. This is pretty easy, I can probably just use the onkeyup() function for that text box. The part I can't figure out is how I can keep the user from changing the total text box. I don't want the user to be able to change that value, I want it to be calculated automatically only. Is that possible for an input text box? Is there any other way I can have text that I can change like an input text box without the user being able to change it? any help is greatly appreciated! <br />
<br />
also: I know I could probably disable the new total input box but that grays out the text, i want it to be visible.<!--content-->never mind, the input text box has a readonly attribute, that solves my question. I should have done more research! thanks<!--content-->
 
Back
Top