I m doing search on the basis of entering text field value its working ok but when i click on search button it shows error on the browser and after that done.
when i open the detail of error it shows 'fieldname(name of my field).options' is null or not an object.
[CODE=javascript]if(doc.INC_COMP _SURNAME.option s[doc.INC_COMP_SU RNAME.selectedI ndex].text != ""){
selectedCount++ ;
}
if(doc.INC_COMP _GIVEN.options[doc.INC_COMP_GI VEN.selectedInd ex].text != ""){
selectedCount++ ;
}[/CODE]
this is my code. i am doing search to fill either of between two textboxes.these are string tye.
Please give me solution.
Thanx in Advance
Gaurav Jhamb
when i open the detail of error it shows 'fieldname(name of my field).options' is null or not an object.
[CODE=javascript]if(doc.INC_COMP _SURNAME.option s[doc.INC_COMP_SU RNAME.selectedI ndex].text != ""){
selectedCount++ ;
}
if(doc.INC_COMP _GIVEN.options[doc.INC_COMP_GI VEN.selectedInd ex].text != ""){
selectedCount++ ;
}[/CODE]
this is my code. i am doing search to fill either of between two textboxes.these are string tye.
Please give me solution.
Thanx in Advance
Gaurav Jhamb
Comment