Skip to content

Pass additional values to the jQuery Plugin from *.cshtml #34

@bigyanchap

Description

@bigyanchap

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions