Add append and prepand in JQuery
1 2 3 4 5 6 7 8 9 |
$(document).ready(function(){ $("#aaa").click(function(){ $("p").append(" <b>Appended text</b>."); }); $("#bbb").click(function(){ $("ol").append("<li>Appended item</li>"); }); }); |
Add prepend() Method in jQuery
1 2 3 4 5 6 7 8 |
$(document).ready(function(){ $("#aaa").click(function(){ $("p").prepend("<b>Prepended text</b>. "); }); $("#bbb").click(function(){ $("ol").prepend("<li>Prepended item</li>"); }); }); |
Video Lecture
Latest posts by Prof. Fazal Rehman Shamil (see all)
- List of Public service commissions - August 31, 2020
- Comparison of fee structure of Pakistani Universities - June 1, 2020
- Past Guess Paper of Auditing - May 12, 2020