7 Do I win? Anyway, you should post the question and answer here just in case somebody searches for it!
There was no answer in the 20 minute time constraint. There was no answer in a couple hours. I would have liked to have left it, but I removed the question just in case someone could not understand the simple logic of the 20-minute time constraint.
well you can post the question anyway, it wouldn't have been in 20 minutes so you wouldn't be obligated to pay them if somebody answered but at least you'd get an answer
I'll do one better, I'll post the question AND the answer. (for learning purposes) Question: From HTML: <div id='calcLink'><a href='http://www.site.com'> site.com</a></div> Code (markup): From JavaScript file: var anchorTag= document.getElementById ('calcLink'). innerHTML; if (anchorTag != "<a href='http://www.site.com'> site.com</a>" ) { ... Code (markup): I'm trying to compare an anchor tag taken from innerHTML. I'm triggering this does-not-equal 'if' condition when they actually do equal (it should not be triggered). As a test, I scraped the anchor tag with innerHTML and placed the anchor tag in a 2nd location with inner HTML and everything worked perfectly. I think the problem might have to do with escape characters? (I'm copying and pasting in the original document, so i know the two tags are identical in the original document.) Answer: In addition to escaping the quotation marks, Javascript was converting the single quotation marks from the HTML into double quotation marks.