...

View Full Version : Label for a text box.



effpeetee
05-30-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:

Frank

Fisher
05-31-2009, 01:16 AM
Try this:

<form>
<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>
</form>

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum