Quantcast
Channel: StuntCoders » jQuery
Browsing latest articles
Browse All 10 View Live

jQuery setTimeout

In order to make certain jQuery function run after some amount of time, you can use setTimeout – a JavaScript function. Here is a snippet that will remove loading mask from your page, one second after...

View Article



jQuery href

When you want to put a link onto a webpage and you want to run a jQuery function on that link, you probably want to attach listener to onclick event. To do that, simply copy following snippet: 1 2 3 4...

View Article

Toggle div using jQuery

Very often you want to supply user with some information, but you don’t want to be too pushy. Present user with a link, and let him click on it so it will lead him to extended text. To do that, all you...

View Article

jQuery substring

Substring is a JavaScript function which can be useful combining with jQuery. It is possible – very often that you will need limit for number of characters that user can enter in textarea in order to...

View Article

jQuery hover

Not often used – jQuery hover is a function that lets you write only one function instead of two for handling mouseenter and mouseleave events. It is a useful function when you want to create drop down...

View Article


Twitter followers with jQuery

Present your users with Twitter followers widget by using only jQuery. Copy following snippet on your webpage, and test this amazing script, by only replacing stuntsnippets with your username. 1 2 3 4...

View Article

Get current page URL and title with jQuery

It could be useful to get current page URL and current page title. Especially if we want to make sharing plugin for our website. Often, we need that information in order to pass them as a parameter to...

View Article

jQuery visible

Use jQuery visible selector to check if element is visible, and make a menu. To use jQuery visible selector and check if element is visible, just use following snippet. 1 2 3 4 5...

View Article


jQuery message box

#darkbg { display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #000; opacity: .5; filter: alpha(opacity=50);...

View Article


jQuery refresh page

Sometimes you really want to refresh page when using jQuery events. So – in order to refresh page on event (in this case click) use following snippet and reload current page. 1 2 3...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images