Online Promoters™ :: Web Development made simple

Tag Archives: jquery

Limit text with jQuery – text limiting – show more …

I needed to limit some longer texts on one of the sites I currently develop and I came with the following solution. I started from the original script made by Renso Hollhumer. If you do improve this script please write a comment with your link to the page where you have posted it. You put this in : text_limit_plugin.js [sourcecode language="js"] (function($) { $.fn.TruncExpandText =...

by Webmaster

Get href of a link with jQuery

Ok. Here you have it plain and simple: [sourcecode] var url = $('#LinkID').attr('href'); alert(url); [/sourcecode]

by Webmaster