/    Sign up×
Community /Pin to ProfileBookmark

Dropdown list filter

Hi, what i’m having is to dropdownlists with data from mysql (PHP). One is with manufacturer and other is items. Both data is from the same table, just different fields. I need, when I choose manufacturer, the item list show only these items asociated with choosen manufacturer without page refresh. Any suggestions?

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@diwasasauthorNov 26.2011 — Thanks, before I tried to use this function

[code=html]function get_hdd() {
$.post('item.php', { name: document.form.naufacturer.value },
function(output) {
$('#gauti_hdd').html(output).show();
});
}[/code]


function send selected value to other file where is mysql query and print result, it working fine for priting item price, but now with mozilla firebug I'm getting error function get_hdd() is not defined, onclick();
Copy linkTweet thisAlerts:
@pactor21Nov 26.2011 — It is generally a good idea to show relevant good idea along with js code. Then we might get somewhere further from it.
×

Success!

Help @diwasas 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.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: @nearjob,
tipped: article
amount: 1000 SATS,

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

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