
February 26th, 2004, 08:53 PM
|
|
Registered User
|
|
Join Date: Feb 2004
Posts: 2
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
HELP~~how I pass in variable that changes into javascript ????
I'm doing a popup calendar, when user click on the img, the calendar appear and after the user selected a date, it'll post back to the asp page and display into a textbox, but I'm having 3 tabstrips in the page, if user clicks the calendar in differnt tabstrips the textbox used to display the date will be different.Like this:
if(TabStrip1.SelectedIndex = "0")index = "0";
if(TabStrip1.SelectedIndex = "1")index = "1";
if(TabStrip1.SelectedIndex = "2")index = "2";
<A href="javascript OpenCalendar('txtDate0', false);">
the 'txtDate0' will change to 'txtDate1' and 'txtDate2' how can I do that ??
I've tried alot of ways but it jus don't work.... I really need help !!!!
|