This is driving me crazy. Hoping somebody may be able to help.
In short, I'm trying to implement some Javascript in my page which will allow a Textbox Watermark. The Javascript and CSS is written. All I need to do is add the HTML part of the code to my PHP. And this is where I've hit a stumbling block.
The following code works fine in HTML but won't work in my PHP because of the speech marks. If I swap out the speech marks and use apostrophes instead, the page generates errors.
Code: Select all
<input type='text' name='urn' [color=#FF0000]class="gatherZip" id="theTextBox" onblur="showWatermark('theTextBox')" onfocus="hideWatermark('theTextBox')"[/color]></input><input type='submit' name='submit' value='Jump!'></input>I've tried escaping the innermost apostrophes but it still doesn't work. Aargh!
Many, MANY thanks.
KD.