Is it possible to set a text box to non updateable, I just want users to be able to view the data but for it to look the same as the rest of the fields. Also is it possible to change this value via javascript??
set it to readonly
<input type="text" readonly>
you can change the value with javascript fairly easy.
reference the name of the form value and set the value in quotes.
document.form name.field name.value = " "
so if you ahve a form named myForm and a text box named myTxt and you want to set it to say this txt then
<script language="javascript">
document.myForm.myTxt.value = "this Txt";
</script>
_______________________________________________ { str = "sleep is good for you. sleep gives you the energy you need to function";
ptr = /sleep/gi;Nstr = str.replace(ptr,"coffee"alert(Nstr); }
_______________________________________________
for the best results to your questions: FAQ333-2924
has you're questio
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.