Avatar of charmingduck

asked on 

web form jquery

on the form, there's a name filed, a phone field, and a picture, a submit button.

how do i achieve this?

the picture is hidden, only when you focus on either the name field or phone field, the picture slidedown, when it's blur, the picture stay hidden.

The problem with my code is(see attached), when I finish name field and tab to phone field, it will still do the slideup and then slidedown. But what I want is, if the blur doesnt last more than 30 secs, it doesnt do the slideup, how to do this in jquery?  


$("#name,#phone").focus(function (){
$("#name,#phone").blur(function (){

Open in new window

JScriptScripting Languages

Avatar of undefined
Last Comment

8/22/2022 - Mon