JQuery and triple droplist
I'm new to jQuery. I've made a triple droplist but still need 2 things which I cant get to work.
- I want it to start with select category and the other two blank.
- I want the text under drop lists to show the text from the first droplist (category). The problem is that when I change something in drop list the text under, doubles...
Any suggestions?
Link: htt开发者_如何学Cp://photoproduct.pl/test2.html
try this one:
$("select.category").change(function () {
var str = "";
$("select.category option:selected").each(function () {
str += $(this).text();
});
$("#log").text(str);
})
.change();
精彩评论