Solved

Get rid of red asterisks

Posted on 2011-09-19
5
289 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 40

Assisted Solution

by:gurvinder372
gurvinder372 earned 100 total points
ID: 36561244
$("font[color='red']").html("");
0
 
LVL 82

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 82

Accepted Solution

by:
leakim971 earned 400 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 82

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

Tutorials alone can't teach real engineering

So we built better training tools.

-Hands-on Labs
-Instructor Mentoring
-Scenario-Based Tests
-Dedicated Cloud Servers

All at your fingertips. What are you waiting for?

Question has a verified solution.

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

DOM Attributes and Properties treatment with jQuery 1.6 by Ivo Stoykov jQuery (http://jquery.com/) 1.6 introduces .prop() (http://api.jquery.com/prop/) and .removeProp() (http://api.jquery.com/removeProp/) methods which allow modifying or removi…
How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
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)

617 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