This content has been marked as final. Show 10 replies
can anyone say where i am wrong in follwing syntax..
var index = document.getElementById('prodlvl0').selectedIndex;
<td class = "almtdheight" width="37%">
<html:select property="lddate" style = "width:160" styleId="prodlvl0" onclick="changeText2(this.value)">
<html:options collection="loadDateList" name="almRecordsNotProcessedBO" property="lddate" labelProperty="lddate"/>
its not wrkng...
You're looking for an element by id that doesn't have an id attribute.
so how should i do that..I am trying to connect by using that styleid="-----" with that coreesponding function..
when i m using id only it showing syntax error..
if there are any possible wayout using struts framework(jdeveloper10 g). i only know the uppercode for
creating a dropdown box & connect it to database...if there are any html submit tag...can anyone help me...
What makes you think that 'styleId' will map to 'id' internally? It's ridiculous.
when I'm using id only it showing syntax erroWhat error? with what XHTML?
i know its ridiculous...i tried a lot but i dont able to make it...it showing id is not a valid tag..
What is showing 'id' is not a valid tag?
I told you every HTML element can have an 'id' tag two weeks ago. What happened when you tried it?
And I'm not referring to ballistic warnings popped up by your IDE either. I'm referring to actions occuring at runtime. When you followed my advice. Two weeks ago.
when i m compiling the page...its showing compilation error on that li9.
<html:select ..................................id="...." ....
is thr r any othr poss way out....
I do not understand. There is no compilation step with HTML.
It's a <html:select> struts tag and will fail if you specify an invalid attribute.
You sill have to provide styleId as the attribute of the tag and it would be rendered as an id element on the html - http://struts.apache.org/1.2.x/userGuide/struts-html.html#select