give your element a name
<form id="" name="whatever"
... document.getElementByName('whatever') ...
portal namespace and jsf generated id has to happen.
oops, that should be:
this is a collection which you should probably iterate to get the name you need.
Ok, so I was wrong again. I forgot JSF namespaces the name attribute also. You can wrap your form in a div or span and access the child, or you can use the prototype.js library and they have the following:
then you would have:
<form id="..." styleClass="whatever">
that is my answer and I am sticking to it. Don't forget to make that classname unique and you shouldn't have a problem.
Hi, thanks for reply.
problem...the JSF- Component <h:form> have not a name-attribut.
yep, see my last post