I have the following jquery method:
(function($){
$(document).ready(function() {
$("select[name='publication_type[category]'] ").change(function (){
alert("It works");
});
});
})(jQuery);
It operates on the following ruby code:
select("publication_type", "category", @filters.selections.collect(&:name), :id =>"publication_type" )
Each time I choose a different option from the drop down box, the alert method fires twice. The intention is that it should only fire once. Any ideas?
Thanks in advance...