How to set an id to html:text or other jsp tags
Hi,
I want to make some validations from javascript on some text boxes.
html tags: <input type="text" id="textbox" name="textbox"> from js document.getElementById("textbox")....works fine but i'm using
jsp tags: <html:text property="textbox"> can i do something like html tags and have access to text boxes by id using getElementById?
I noticed that html:text has an attribute styleId...can someone tell me how it works
Also I have a form that i want to submit:
<html:form action="/action" method="post">
..........
<html:button value="Submit" onclick="submitValid()"></html:button>
</html:form>
the js:
function submitValid(){
//make some validations
document.forms.submit()
}
I get an error: A run-time error has occurred
Object doesn't support property or method
Thanks in advance,
David

