addClass() jQuery, puede eliminarlas con la función removeClass() jQuery. A continuación le indicamos cómo haría esto para un botón específico: $("#target2").removeClass("btn-default"); btn-default clase btn-default de todos nuestros elementos de button . btn-default de todos sus elementos de button .
testString: 'assert($(".btn-default").length === 0, "Remove the btn-default class from all of your button elements.");'
- text: Utilice solo jQuery para eliminar esta clase del elemento.
testString: 'assert(code.match(/btn btn-default/g), "Only use jQuery to remove this class from the element.");'
- text: Sólo elimine la clase btn-default .
testString: 'assert(code.match(/\.[\v\s]*removeClass[\s\v]*\([\s\v]*("|")\s*btn-default\s*("|")[\s\v]*\)/gm), "Only remove the btn-default class.");'
```