I'm working with Magento trying to style error messages as pop-ups, instead of displaying inline.
I found an article explaining how to do this, but the code displays an error when I try to use it. (http://azharkamar.com/5378/magento-modifying-default-message-alert-box-popup-dialog/)
This is the code I am using:
$html .= '<a class="msgclose" href="#" onclick="document.getElementById("messages").style.visibility="hidden"">x</a>';
A comment mentioned after the article said that they "had to escape the single quotes to make it work."
I tried editing the code, and used the code shown below. The close button appears but it won't close the box.
$html .= '<a class="msgclose" href="#" onclick="document.getElementById("messages").style.visibility="hidden"">x</a>';
Any help would be much appreciated, thank you!