Can I store custom attributes in HTML DOM like a database record?

前端 未结 5 1611
生来不讨喜
生来不讨喜 2021-02-20 16:30

When developing for browsers FF3 and IE6/7 with jQuery, are there any compatibility issues when setting custom attributes on HTML tags?

First, I\'m aware of jQuery\'s

5条回答
  •  遥遥无期
    2021-02-20 17:14

    This is relatively unknown but pretty dang useful: jQuery Metadata Plugin. It will let you store data within class names for retrieval. Its mostly used for the validation plugin but, really, can be adapted to any scenario.

    Good luck with whatever you are working on.

提交回复
热议问题