Select from following answers:- Wrap()

- Unwrap()
- Scroll Top()
- Scroll Left()
- All Above
In Jquery To wrap an element from a specific element wrap() method can be used.
Example
:$("#divP").wrap("<div id='divScroll'
style='height:80px;width:200px;overflow:scroll;'></div>")
In this , Code will wrap the “divP” with the specified div html tag
After wrapping , the code snippet will be like
<div id="divScroll" style="height:80px;width:200px;overflow:scroll;">
<p id="divP" style="height:250px;width:300px;background:#efefef;">
This is looking nice. </p>
</div>
Show Correct Answer
Asked In: While Learning |
Alert Moderator