an
saurus
tags:
jquery
webkit
views:
26
answers:
1
Q:
Weirdness using jquery's .html() function to set <a></a> with a special character ✓ (checkmark)
+6
A:
Don't forget the trailing semicolon:
button.html('✓');
VoteyDisciple
2010-06-07 19:40:46
+1 for beating me by 7 seconds (and the exact same answer); wonder if it's really the problem
MvanGeest
2010-06-07 19:41:26
Wow... can't believe I missed that. I've been banging my head against the wall wondering what was wrong.Thank you soo soo much!
Sam
2010-06-07 19:45:12
And yes, that was the problem. Apparently FF is forgiving enough to display the character without the semicolon, but Chrome, not so much.
Sam
2010-06-07 19:52:28
related questions
Communicating between websites (using Javascript or ?)
Javascript Unit-testing?
How can I return a variable from a $.getJSON function
Is there an "exists" function for jQuery
Why do I receive a q[num] error when aborting a jQuery queue pipeline?
How do I fire an event when a iframe has finished loading in jQuery?
How to compare html entity with JQuery
Problems while submitting a UTF-8 form textarea with JQuery/AJAX
How do I get the coordinates of the caret in text boxes?
SimpleModal breaks ASP.Net Postbacks
How would you handle errors when using jQuery.ajax() ?
Where is the best jQuery "plugins" library on the web?
Where can I learn jQuery? Is it worth it?
Keeping key value pairs together in HTML <select/> with JQuery?
How to set encoding in .getJSON JQuery
What is a selector engine?
Escaping HTML strings with jQuery
jQuery AJAX vs. UpdatePanel
What's the best way to code a desktop application-like menu bar in Javascript?
Dynamic Alphabetical Navigation
Scrolling Overflowed DIVs with JavaScript
How do I add a pre tag inside a code tag with jQuery?
Graph visualization code in javascript?
Wrapping lists into columns
Interview Questions for an Intern