Return to Snippet

Revision: 28721
at July 13, 2010 06:50 by vagrantradio


Updated Code
//Cross-browser CSS
abbr, acronym, .help {
        border-bottom-style:dotted;
	border-bottom-width:1px;
	border-bottom-color:#000;
	cursor:help;
	display:inline-block;
}

//acronym
jQuery("p.att").each(function() {
  jQuery(this).html(jQuery(this).html().replace('AGM', '<acronym title="Absorbed Glass Mat">AGM</acronym>'));
});

//abbreviation
jQuery("p.att").each(function() {
  jQuery(this).html(jQuery(this).html().replace('AGM', '<abbr title="Absorbed Glass Mat">AGM</abbr>'));
});

//help class
jQuery("p.att").each(function() {
  jQuery(this).html(jQuery(this).html().replace('AGM', '<span class="help" title="Absorbed Glass Mat">AGM</span>'));
});

Revision: 28720
at July 13, 2010 06:48 by vagrantradio


Initial Code
//Cross-browser CSS
abbr, acronym, .help {
        border-bottom-style:dotted;
	border-bottom-width:1px;
	border-bottom-color:#000;
	cursor:help;
	display:inline-block;
}

//acronym
jQuery("p.att").each(function() {
  jQuery(this).html(jQuery(this).html().replace('AGM', '<acronym title="Absorbed Glass Mat">AGM</acronym>'));
});

//abbreviation
jQuery("p.att").each(function() {
  jQuery(this).html(jQuery(this).html().replace('AGM', '<abbr title="Absorbed Glass Mat">AGM</abbr>'));
});

Initial URL


Initial Description
Finds word "AGM" and replace with acronym or abbr title.

Initial Title
Find and Replace

Initial Tags
css, replace, jquery, find

Initial Language
jQuery