Tag: attr

65 votes
8 answers
2.4K views
How to use dashes in HTML-5 data-* attributes in ASP.NET MVC

I am trying to use HTML5 data- attributes in my ASP.NET MVC 1 project. (I am a C# and ASP.NET MVC newbie.) &

avatar
Charis
0 1 0 9
asked 07 September, 2021
55 votes
21 answers
414 views
React Js conditionally applying class attributes

I want to conditionally show and hide this button group depending on what is passed in from the parent compone

avatar
Chelsea
0 1 0 9
asked 07 September, 2021
55 votes
18 answers
2.1K views
.prop() vs .attr()

So jQuery 1.6 has the new function prop(). $(selector).click(function(){ //instead of: this.getAttrib

avatar
Yolando
0 1 0 9
asked 07 September, 2021