View Full Version : Label for a text box.

May 30th, 2009, 09:58 PM
This program (http://exitfegs.co.uk/Sourcessjs.html)is nearing completion. I have a textbox - top left - for search word input and I would like to put a label on it. I have had no luck so far and would like some help.

The form tag is not one that I have used and my attempts to understand it have not been very fruitful.:eek:

Any help or suggestions appreciated.:thumbsup:


May 31st, 2009, 01:16 AM
Try this:

<input type="text" size="61" style="padding: 2px;" id="text" onkeyup="javascript:void($('a').removeHighlight().highlight(document.getElementById('text').value)); return false;"/>
<label style="color:#fff;" for="text">Search</label>

I only added the inline style because your text is black. You should put it in your external CSS though.