Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a VF page..I have a button open pop up..on click of that button i am opening a pop up using output panel and css...using the code something like this..


On that pop up i am using autocomplete using VF remoting and a confirm button on that popup..My problem is i am using blur event whenever i type some thing in that autocomplete text box i am selecting a autocomplete record and on onblur event calling a method but the curser remains in that text box.So when i click a confirm button onblur event is again called calling the controller method.

I want the curser to move out of the textbox after onblur event ..?? I need some jquery/javascript code...

close: function(){

Please help i am stuck with this issue...for 3 days...


share|improve this question

I'm finding it hard to interpret your question. Can you provide more code examples?

I think you're using blur() wrong. Wouldn't you want to use a typing timer? Something that queries for auto-complete answers only after the user has stopped typing? That's the best I can say at this point.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.