Monthly Archives: July 2014

SCROLL TO BOTTOM ON BUTTON CLICK

HTML —- LT div id=”main” GT LT div class=”container-fluid” id=”subParentDiv” GT LT /div GT LT /div GT JAVA SCRIPT ———– function checkScroll(){ scroll_to($(“#main”), $(“#subParentDiv”)); } function scroll_to(base, target){ base.animate( { scrollTop:target.height() },1000 ); } EXPLANATION ———– Call the checkScroll() function … Continue reading

Posted in JavaScript / CSS, JQuery | Leave a comment

Copy Particular Row and Append it in a Table

function copyAndAppend(id){ $(“#”+id+” tr:last”).after(“ ” + $(“#serviceRow”).html() + “ “); } Explanation: 1) $(“#serviceRow”).html() : I will copy all the inner content of an element having id = “serviceRow” 2) $(“#”+id+” tr:last”) : I have used ‘id’ variable, its value … Continue reading

Posted in JavaScript / CSS, JQuery | Leave a comment