I am using cshtml with jQuery. My <span id="timedisp_@x.XId"></span> is inside foreach loop. Doing this I can send only one data i.e. the ID -- and that is also not so efficient. I also need to pass DateTime info to the jQuery Count-down Plugin as the page loads. How can I do that?
Should I do:
<span id="timedisp_@x.XId" onload=myFunc(x.XId,x.XStartTime,x.XEndTime)></span>
?
If I do so, how can I use this inside the jQuery-countdownTimer? Please help.