Select from following answers:- .before()

- after()
- parent()
- height()
- All Above
Here to place content before a specific html element, before() method can be used. in the code snippet and also it will insert the specific text before tag called "h"
example:
<script>
$("h1").before("<h2>This should not be at the top</h2>");
</script>
Show Correct Answer
Asked In: spotted |
Alert Moderator