How to pass variable into selector

What is your month criteria? Do you have a range specification? Below selector works for Next month in IE, if idx=1 works for Current month (Since two calenders are opening). Similarly if you click Next Page, idx=1 works for Odd Month, Idx=2 works for Even month. Based on that criteria try to pass Idx variable as well.

The above logic varies if you select current month or next month because if you select next month, the page is automatically showing next month(idx=1),next month+1(idx=2) calenders

"<webctrl idx='2' tag='TABLE' /><webctrl aaname='"+dateval+"' tag='TD' />"

`Main.xaml (9.3 KB)