0

How can I add data-role="collapsible" in every div container with class "make_me_collapsible"?

<div class="make_me_collapsible"><h2>Header</h2><p>Content....</p></div>
S. Braun
  • 15
  • 7

1 Answers1

0

You can add it with the attr() method. Like so:
$(".make_me_collapsible").attr("data-role","collapsible");

TheWandererr
  • 514
  • 1
  • 8
  • 34