/    Sign up×
Community /Pin to ProfileBookmark

auto search trigger

[CODE] function fill(thisValue) {$(‘#country’).val(thisValue); setTimeout(“$(‘#suggestions’).fadeOut();”, 600);
$(“#my_form”).trigger(‘submit’);}()[/CODE]

the above function is supposed to fill the search string from the suggestion box and trigger the automatic search but it does not work. If I comment the “my_form” line , the field is filled in just fine but of couse it does not trigger the search. So what I m trying to achieve here is fill in the field and trigger the search right away like google search. Anyone can help?

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @tomindo spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...