0

Is there a way to take:

<button class="btn btn-primary btn-block">

And change it to:

<button class="btn btn-foo">

...with...

.btn-foo { 
    /* apply .btn-primary */
    /* apply .btn-block */
}
Kate R
  • 3
  • 1
  • 1

1 Answers1

0

You can easily do so with SASS pre-processor by using @extend.

someDiv { @extend .opacity; @extend. 
.radius; }

Otherwise, you could use JavaScript (jQuery) as well:

$('someDiv').addClass('opacity radius')
Sarvesh Mahajan
  • 914
  • 7
  • 16