
Untitled
By: a guest on
Jun 26th, 2012 | syntax:
None | size: 0.46 KB | hits: 6 | expires: Never
$("#yourselectlistid").change(function(e) {
console.log(this);
if(this.value() == "whatever") {
$('#elementid').show(); //or do all elements with class
$('.elementsclassname').show(); //you can just alternate this to hide() if you are doing that.
} else {
$('#elementid').hide(); //or do all elements with class
$('.elementsclassname').hide(); //you can just alternate this to hide() if you are doing that.
}
})