octane
I have issues, OK!
Hi all, got an interesting enough problem here.
Here is the javascript I use to instruct a site visitor what to do when they see a text field. When the user clicks into the text field, the instruction disappears.
All good stuff. Problem: I _need_ to have the fields named a very specific way, this interferes with the mechanics of the javascript:
In the final rendered html, this:
Looks like this:
This name stops the javascript from executing properly.
How do I make it work but still keeping the naming convention?
Is there another way to do it?
Thanks...
Here is the javascript I use to instruct a site visitor what to do when they see a text field. When the user clicks into the text field, the instruction disappears.
All good stuff. Problem: I _need_ to have the fields named a very specific way, this interferes with the mechanics of the javascript:
onfocus="document.form_details.details[textfield_lastname<?php echo ("$i"); ?>].value=''"
In the final rendered html, this:
details[textfield_lastname<?php echo ("$i"); ?>]
Looks like this:
details[textfield_lastname1]
This name stops the javascript from executing properly.
How do I make it work but still keeping the naming convention?
Is there another way to do it?
Thanks...