Welcome To Snipplr
Everyone's Recent Snippets Tagged jquery
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This snippet will allow you to create a template browser for when you need to show multiple pages quickly. simply add the new pages into the select dropdown options and you're away.
0
559
posted 13 years ago by demwunz
f you wish to use any of the meta-characters ( such as !"#$%&'()*+,./:;?@[\]^`{|}~ ) as a literal part of a name, you must escape the character with two backslashes: \\. For example, if you have an an element with id="foo.bar", you can use the select...
0
594
posted 13 years ago by bitstream
I like how this site uses jQuery to center some elements and I wanted to save the code incase they change their site ever.
2
834
posted 13 years ago by greenconure
The option elements in the original select may provide an image and a second line of text by using a data-img and a data-info attribute.
7
1391
posted 13 years ago by peckham
When running live filters on large, long scripts you can get old, stale results replacing your new, fresh ones. After all, a search for everything containing 'S" in a large database of city names can take a lot longer than "Seattle", so your script g...
2
1108
posted 13 years ago by FatFolderDesigner
Template for a Object Literal Architecture in javascript, in this case jQuery
0
699
posted 13 years ago by athanassiadis
This snippet could be useful if you use an div based design eg. with a slider or something similar. it grabs variables from the base url splitted by "#".
So you can browse to your site like "http://www.example.com/#1#2" and use the first and secon...
0
974
posted 13 years ago by disas
A vast majority of sites these days make use of the jQuery JavaScript library. A vast majority also make use of Google’s hosted version of the library for faster loading speed’s, and better cross site caching. However, what if there is ever a pro...
1
691
posted 13 years ago by paul66
_off を _on ã«ç½®æ›ã—ã¦ãƒãƒ¼ãƒ«ã‚ªãƒ¼ãƒãƒ¼
_on ç”»åƒã‚’プレãƒãƒ¼ãƒ‰
0
373
posted 13 years ago by tsucharoku
This is the code necessary to grab the title attribute from the link/images selected and then parse it for use in the title field of a FancyBox popup.
0
627
posted 13 years ago by davidcfox
$('li.current_sub').prevAll("li.par_cat:first");
Tested it with your markup:
$('li.current_sub').prevAll("li.par_cat:first").text("woohoo");
will fill up the closest previous li.par_cat with "woohoo".
1
900
posted 13 years ago by lamebollock
The uploaded file is attached to the "pid" of the recently inserted project.
the "pid" variable is retrieved from the database after the project has been entered
2
995
posted 13 years ago by danhanly