Thank you Daniel. That's perfect. This was hole in my understanding:
$('.header_login_right_fake > .login_input')[0].value = $
('.header_login_right_fake > .login_input')[0].defaultValue;
How to access the attributes of the inputs! My function now looks
like this:
// restore default text in
When you click outside the password field, the field is still
not
Therefore, default value is '' , not
a quick fix to your code ( not tested )
$('.login_input').blur(function(){
if(this.value === '' && this.name === 'pass'){
$('.header_login_right_fake
Hi,
I'm still really struggling with this. Any help would be greatly
appreciated!
Rob.
On Jan 6, 11:40 am, rob303 wrote:
> Hi,
>
> I've put together a couple of small functions to handle the removal /
> restore of the default text inside some text inputs. One of these
> inputs is a password
3 matches
Mail list logo