Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
$('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
1043
posted 14 years ago by lamebollock
Instead of directly edit your TEMPLATE\_CONTEXT\_PROCESSORS, import it in your app's settings.py and just append what you need.
(credits: denysonique and all #django channel community)
0
1069
posted 14 years ago by caruso_g
Archive manager doesn't handle some RAR files and 7zip files out of the box, you need to run this command in order to make it work with this kind of files.
0
911
posted 14 years ago by aelien
CSS3 multiple backgrounds with fallback color.
For compatibility info see http://caniuse.com/#search=multiple%20background
1
864
posted 14 years ago by Moonsheeld
In Webkit, when a general (x ~ y) or adjacent sibling selector (x + y) is combined with a dynamic pseudo class such as :hover, :focus, :checked, etc., the function breaks. This code snippet fixes it.
0
1005
posted 14 years ago by classicc
Simple jQuery script to load additional content when you near the bottom of the page, same sorta thing Twitter does (although I originally programed it for a different use). Only thing of remark is the fact that it stores the current highest loaded v...
4
1554
posted 14 years ago by FatFolderDesigner
HTML para Absolutamente Noobs.
Post Completo: http://kanis.com.br/
Primeira video aula da série de 10 episódios.
0
1029
posted 14 years ago by leandrokanis
Credits to 'Simon' (http://doctype.com/css-font-stack-use-myriad-pro)
1
955
posted 14 years ago by tonatiuh
I thought this was pretty elegant code and wanted to share it with anyone who found it useful.
0
908
posted 14 years ago by mattneary
Field1 + Field2 + Field3 should create 1 entry for each unique row in the DB. In an employee table, this would be FirstName + LastName + EmployeeNumber
1
836
posted 14 years ago by ezerick
this will display the size of a directory as if you run du -sb dir
0
2979
posted 14 years ago by silviud
Returns a circle filled with textfields with your text. fully customizable. See the actionscript comments for usage
2
882
posted 14 years ago by withinmedianl