<input type="submit" value="" id="srchbtn" /> <input type="text" value="Search..." id="srchtext" />
What that does it creates a submit button with no value ( I set the width and height to an image I wanted to use for the button and floated it to the left of the text) and a text input field with "Search..." in it. What I want is so when people click into the text input area, the "Search..." dispappears and they can type. What I have now is so when I click to type, I have to backspace the "Search..." before I can enter a keyword.
I tried writing a JavaScript function for it using the "onClick" attribute of HTML, but I honestly don't know shit about JS besides how to do a "hello world!" app lol. So, does anyone have the time to help me out and point me in the right direction? I'd honestly perfer a thorough tutorial, by that I mean one that explains why this bracket is there and why I write this there and blah blah.
Thanks a lot!
