Return to Snippet

Revision: 11670
at February 13, 2009 11:06 by 1man


Initial Code
/**
		 * Remove some text dynamically from the Nav (for design)
		 */
		$("ul#aPorts li a").not(":last").each(function(){
			var alteredString = $(this).text().replace(/Airport/,"");
			$(this).text(alteredString);
		});

Initial URL

                                

Initial Description
Removed a certain word from a list of links (purely for design reasons). Link length way to long with the link included.

Initial Title
Remove text from a node (e.g in links)

Initial Tags
replace, text, links

Initial Language
jQuery