visual
05-26-2004, 03:46 PM
Hi !
I do have a question !
Jere did wrote a simple Script, that change a HTML code by click !
___________________________________________________________
function changeAction(formId, toWhat){
document.getElementById(formId).action = toWhat;
}
___________________________________________________________
In HTML:
<input type="submit" class="Search" value="X" onclick="changeAction('theForm', '/cgi-bin/del.pl');">
___________________________________________________________
Now, i wanna use this code for that:
... <span id="theForm" datafld="EN"></span></font></td>
</tr></table> ...etc.
___________________________________________________________
I wanna change the datafld="EN" to datafld="FR"
But it doesn't work !
I changed the action, in the script, to datafld.
I do have a question !
Jere did wrote a simple Script, that change a HTML code by click !
___________________________________________________________
function changeAction(formId, toWhat){
document.getElementById(formId).action = toWhat;
}
___________________________________________________________
In HTML:
<input type="submit" class="Search" value="X" onclick="changeAction('theForm', '/cgi-bin/del.pl');">
___________________________________________________________
Now, i wanna use this code for that:
... <span id="theForm" datafld="EN"></span></font></td>
</tr></table> ...etc.
___________________________________________________________
I wanna change the datafld="EN" to datafld="FR"
But it doesn't work !
I changed the action, in the script, to datafld.