[jQuery] how to call a toggle on .blur

2009-11-09 Thread homien...@gmail.com
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

[jQuery] Re: lose focus on txtbox and div, do something

2009-03-05 Thread homien...@gmail.com
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

[jQuery] lose focus on txtbox and div, do something

2009-03-05 Thread homien...@gmail.com
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

[jQuery] Re: multiple conditions?

2009-03-03 Thread homien...@gmail.com
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') > } > &

[jQuery] multiple conditions?

2009-03-01 Thread homien...@gmail.com
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