Friday, 23 August 2013

Display img only when it has a title?

Display img only when it has a title?

Basically in my ASP.NET MVC4 project I'm trying to have my
validationmessages as tooltips (which gets displayed when hovered over a
certain image). Right now the error message is inserted into the image
title - however I'd like to ONLY display the image when it has a title
(when it doesn't have a title there is no error message).
How can I do this?
I don't suppose it is possible through CSS so a js/jquery solution would
work too.
To clarify I need to check update the display as the title changes during
runtime. An initial check is not gonna do it.

No comments:

Post a Comment