jQuery fans blog and community sharing news, plugins, video tutorials, demos and more.

jQuery Back Button (go to previous page)

jQuery/JavaScript code snippet to simulate a back button based on the users last web page. $(document).ready(function(){     $(’a.back’).click(function(){         parent.history.back();         return false;     }); });

Continue reading →

jQuery Change Hyperlink Attribute Values

Sometimes it can be time consuming to change hyperlinks on a page. Never fear! jQuery to the rescue! Here is some jQuery code to change the attribute values for hyperlinks on a web page. Link attribute: “name”, “id”, “class”, “target”, “href”. $(document).ready(function(){     $(function(){…

Continue reading →

jQuery Insert alphabetically into a List

This function will insert items into an order alphabetically (assuming it contains letters). Initially design to make a smooth single page load/save feature that sorted everything in drop down lists, you guessed it, alphabetically. Can simply be modified to work in any sort of layout…

Continue reading →

jQuery Get Current Year (Dynamic Footer/Copyright)

JavaScript code snippet to automatically insert the correct year into your footer (so you don’t have to update it ever again!). Example: Copyright © 2011 Copyright &amp;copy; <script type="text/javascript">     var dteNow = new Date();     var intYear = dteNow.getFullYear();     document.write(intYear);…

Continue reading →

jQuery AutoScroll to Div (specific page element)

jQuery code snippet to autoScroll to a div or any page element with an id. Just change the jQuery selector “mydiv” with whatever element id you wish. function scroll_to(div){     $(’html, body’).animate({         scrollTop: $("mydiv").offset().top     },1000); }

Continue reading →

Page 46 of 47 ←; First ... 43 44 45 46 47
promote your blog
Best CDN
scroll to top