Looking to conduct a test to determine whether the value of a CSS attribute matches a specific string. The comparison functions correctly in JSFiddle, providing the expected result. However, Eclipse presents a different outcome and appears to interpret the following statement as false:
if ($('.span1').css('font-family') == 'Arial') { alert("True");}
While in JSFiddle, it is evaluated as true, resulting in the display of a window with "True" popping up. Any insights on why this difference occurs and suggestions on how to address it would be greatly appreciated.
Link to JSFiddle: http://jsfiddle.net/s8d90911/