<sectionid="description"> Ahora eliminemos un elemento HTML de su página usando jQuery. jQuery tiene una función llamada <code>.remove()</code> que eliminará un elemento HTML. Quite completamente el elemento <code>target4</code> de la página mediante el uso de la función <code>.remove()</code> . </section>
- text: Usa jQuery para eliminar tu elemento <code>target4</code> de tu página.
testString: 'assert($("#target4").length === 0 && code.match(/\$\([""]#target4[""]\).remove\(\)/g), "Use jQuery to remove your <code>target4</code> element from your page.");'
- text: Solo usa jQuery para eliminar este elemento.
testString: 'assert(code.match(/id="target4/g) && !code.match(/<!--.*id="target4".*-->/g) && $("#right-well").length > 0, "Only use jQuery to remove this element.");'