i have a search icon at the top of my page, when i click this it
toggles show/hide on the search form.
now when the user loses focus of the search form (.blur), i want it to
activate the hide part of the toggle.
when the search icon is clicked, it gives focus to the search form, so
the moment the
anyone?
On Mar 5, 3:27 pm, "homien...@gmail.com" wrote:
> I have a div with a textbod inside of it. When both of these lose
> focus, so the focus is not on either of them, then I want the div to
> move. How would I write the code that if both of these lose focus,
> THEN d
I have a div with a textbod inside of it. When both of these lose
focus, so the focus is not on either of them, then I want the div to
move. How would I write the code that if both of these lose focus,
THEN do whatever i want.
I just want to know how to have 2 selectors, and when both of them
lose
ething()};
> $('textarea').focus(function () {textareafocus=true}).blur(function()
> {textareaFocus=false;doSomething()}
>
> function doSomthing()
> {
> if (!divFocus && !textAreaFocus) alert('There is no focus on the
> div&textarea')
> }
>
&
I have a div with a textbod inside of it. When both of these lose
focus, so the focus is not on either of them, then I want the div to
move. How would I write the code that if both of these lose focus,
THEN do whatever i want.
I just want to know how to have 2 selectors, and when both of them
lose
5 matches
Mail list logo