/    Sign up×
Community /Pin to ProfileBookmark

Auto Form Post to display all search results?

I’m new to javascript but had a question about a form I was working on.

I have a simple search form that users can utilize to search for products on a site. My question, is there a way to have it automatically display all the products available?

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@__flodu__Apr 24.2015 — hey, pleas be more specific.

It depends on your response.

- Do you get your products by an ajax-call?

- How does the response looks like? Is it HTML or JSON or anything else?

Maybe post your javascript code-snipped then it will be much easier to help you.
Copy linkTweet thisAlerts:
@andy565Apr 24.2015 — sounds to me like your after something like this:

http://www.w3schools.com/jsref/event_onchange.asp

hope that helps
×

Success!

Help @liwood223 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 5.16,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...