Having a problem with the change() event in jQuery:
$("select[name=cmm]").change(function(){
total();
});
For some reason the "total" function isn't being called with the code above. The html code is:
<select name="cmm">
<option value="none">none</option>
<option value="one">the first</option>
<option value="two">the second</option>
</select>
Am i referring to the element the wrong way or something? Or calling the function the wrong way?
Update: The alert function here doesn't show up, so I'm guessing the change event is never called..
$(document).ready(function() {
$("select[name=cms]").change(function(){
total();
alert($("select[name=cms]").length);
});
});
(and yes, I have been using doc-ready all the time)