Hai To all.
I need to get the Slected Item from the listBox, I did used the following script,
[code=javascript]
function warn_DeleteToUs er()
{
var x =document.getEl ementById("ctl0 0_WorkArea_lstF ieldGroups");
for (i = 0; i < document.getEle mentById("ctl00 _WorkArea_lstFi eldGroups").opt ions.length; i++)
{
if (document.getEl mentById("ctl00 _WorkArea_lstFi eldGroups").opt ions(i).selecte dItem)
{
var xy=document.get ElementById ("ctl00_WorkAre a_lstFieldGroup s").options(i). text;
}
}
}
[/code]
But It shows error as Object Doennot support this prooperthy or methodes in the line
[code=javascript]
if (document.getEl mentById("ctl00 _WorkArea_lstFi eldGroups").opt ions(i).selecte dItem)
[/code]
What may the reson, I am using IE 7.
Any help should be appreciatable
By Ashraf
I need to get the Slected Item from the listBox, I did used the following script,
[code=javascript]
function warn_DeleteToUs er()
{
var x =document.getEl ementById("ctl0 0_WorkArea_lstF ieldGroups");
for (i = 0; i < document.getEle mentById("ctl00 _WorkArea_lstFi eldGroups").opt ions.length; i++)
{
if (document.getEl mentById("ctl00 _WorkArea_lstFi eldGroups").opt ions(i).selecte dItem)
{
var xy=document.get ElementById ("ctl00_WorkAre a_lstFieldGroup s").options(i). text;
}
}
}
[/code]
But It shows error as Object Doennot support this prooperthy or methodes in the line
[code=javascript]
if (document.getEl mentById("ctl00 _WorkArea_lstFi eldGroups").opt ions(i).selecte dItem)
[/code]
What may the reson, I am using IE 7.
Any help should be appreciatable
By Ashraf
Comment