form field name

L

led

I have this procedure that takes the name of form fields as tested with the
msgbox but i want to replace the name of the form controls with that ex
change the checkbox named C1 by the variable ck and the control named prec1
replaced by variable tx

<!--
sub vb1(Byval ck, byval tx)
msgbox ck & " " & tx
if window.document.fp1.c1.checked=false then
window.document.fp1.prec1.disabled=true
window.document.fp1.prec1.value=""
else
window.document.fp1.prec1.disabled=false
window.document.fp1.prec1.focus()
window.document.fp1.prec1.value="Preço"
end if

end sub
'-->
 
T

Thomas A. Rowe

You can not run VBScript client side on the internet, as it is only supported by IE / Windows users.

You would have to do this using JavaScript.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
==============================================
Agents Real Estate Listing Network
http://www.NReal.com
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top