regarding tabstrip

S

shyne

hi all,
Tabstrip targetid is MultiPage2.
there are 3 pages in multipage
the cursor should park on first field of respective page
when the selection index is changed.
this is working fine , if we keep some alert box in the
onselectionindexchanged method , other wise it is not
working.
the code:
function selctionIndexChanged()
{
if(MultiPage2.selectedIndex==1)
{
document.form1.TxtAdd1.focus();
}
else if(MultiPage2.selectedIndex==2)
{
alert(MultiPage2.selectedIndex);
document.form1.TxtSpouse.focus();
}
else
{
alert(MultiPage2.selectedIndex);
document.form1.TxtEmpCode.focus();
}

}
when we click on 0 or 2 page it is working fine because of
alert box, for 1st page it is not working.
i want the cursor to park on first fields of respective
pages without alert box.
plz need help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top