Storing arbitrary info in HTML tags for JavaScript?

后端 未结 5 1117
孤独总比滥情好
孤独总比滥情好 2020-11-29 12:48

A very general question.

I am dynamically generating a form that is split into multiple levels of tabs using HTML / JavaScript.

I want to highlight some of t

5条回答
  •  离开以前
    2020-11-29 13:27

    I like how John Resig did this: a script tag with arbitrary type. His example is about templating, but you could really use this for anything.

提交回复
热议问题