I'm working with a CMS which allows you to add a tooltip to input boxes.
So this one has tooltip "Please enter your phone number".
<input name="var_customerphone" title="Please enter your phone number" />
and this one is emtpy
<input name="var_customername" title="" >
Here's my css which changes the cursor to help
input[type="text"][title] { cursor: help; }
My problem is this, the above code will show the help cursor for both inputs above, even though the second one doesn't contain any help text in the tooltip.
Is there any way to put some conditional code on the css to only show the help cursor if title is not empty?
Something along the lines of: input[type="text"][title !=""] { cursor: help; }
I have no control over the CMS so title will be outputted regardless if it contains any text or not.
thanks