how do i add a selector change event to this?
<p>Here is my jquery which works great </p>

<pre><code>$(document).ready(function(){
    $('#new_average, #max_occupancy').keyup(function(){
        factor = $(".industry_picker option:checked").attr("title");
        average = $('#new_average').val();
        if($('#new_average').val().indexOf("$") != -1){
            average = average.substring(1);                                                     
        }
        if($("#max_occupancy").val() != ""){
            max_occupancy = $("#max_occupancy").val();
            max_total = ((average * factor) * max_occupancy) * 30;
            if(factor != ""){
                $("#new_calc").val("$" + max_total + ".00");
            }

        }                                                   
    });
});
</code></pre>

<p>but the problems is I need this to fire off on keyup and on </p>

<pre><code> $(".industry_picker") 
</code></pre>

<p>changed ....i know I can copy this exact functionality over and have a </p>

<pre><code> $(".industry_picker").change 
</code></pre>

<p>but i feel that is a hack...is there a better way of having the  </p>

<pre><code>$('#new_average, #max_occupancy").keyup 
</code></pre>

<p>and </p>

<pre><code>$(".industry_picker").change  
</code></pre>

<p>in the same selector or a better way of achieving this without copying the entire function again</p>
