Welcome Guest, Not a member yet? Register   Sign In
on mouse down in a form helper?
#1

[eluser]R_Nelson[/eluser]
im using this to crate an input box for a form
Code:
form_input('name', set_value('name'));
what i would like is to have 'Your Name Here' or something like that in the box but in a light grey and use onmousedown to clear the box when they click the box to type how do i do this?

I am fairly certain in can figure out the Java/Jquery part just need to bale to get it into the form input.
#2

[eluser]R_Nelson[/eluser]
i found the answer to my question :
Code:
$extra = 'onfocus="this.value=\'\'"';
echo '<label>Name :</label> '.form_input('name', set_value('name','Your Name Here'),$extra);




Theme © iAndrew 2016 - Forum software by © MyBB