Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Get rid of red asterisks

Posted on 2011-09-19
5
Medium Priority
?
294 Views
Last Modified: 2012-08-13
I want to change this:

<font color="red">*</font>

to this:

<font></font>

using jQuery.


Thank you,

Tom

0
Comment
Question by:Tom Knowlton
  • 3
5 Comments
 
LVL 40

Assisted Solution

by:Gurvinder Pal Singh
Gurvinder Pal Singh earned 400 total points
ID: 36561244
$("font[color='red']").html("");
0
 
LVL 83

Expert Comment

by:leakim971
ID: 36561252
please note : http://www.w3schools.com/TAGS/tag_font.asp
The font element is deprecated.

you may use : $("font:contains('*')").replaceWith("<font />");
test page : http://jsfiddle.net/udxDD/
0
 
LVL 83

Accepted Solution

by:
leakim971 earned 1600 total points
ID: 36561262
with the red color : $("font:contains('*'):[color='red']").replaceWith("<font />");
test page : http://jsfiddle.net/udxDD/1/
0
 
LVL 5

Author Closing Comment

by:Tom Knowlton
ID: 36561519
thx
0
 
LVL 83

Expert Comment

by:leakim971
ID: 36561533
please note you don't need the colon before [color : $("font:contains('*')[color='red']").replaceWith("<font />");
http://jsfiddle.net/udxDD/2/
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have answered several questions lately that were solved utilizing the power of jQuery's AJAX functions, so I thought I would write an article demonstrating the ease of use. Why should I use jQuery as opposed to regular JavaScript? Now I know…
Requirements JQuery 1.6+ HTML CSS Introduction This article was inspired by an EE question (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28372511.html) on how to make a page show some balloons animate up a page…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question