Change function dynamically

Change function dynamically

Hi there,

I'm using a function that hides and shows content.
  1. $('.new-customer-details').enableValidators(false);

  2. $('.quote-customer-select select').change(function () {
  3.     var selected = $(this).find(':selected').val()
  4.     if (selected == '-1') {
  5.         $('.new-customer-details').slideDown();
  6.         $('.new-customer-details').enableValidators(true);
  7.     }
  8.     else {
  9.         $('.new-customer-details').slideUp();
  10.         $('.new-customer-details').enableValidators(false);
  11.     }
  12. })

In my example where the value="-1" is selected from the drop down list the content is show.  All good.
My question is how can I change and bind the above dynamically?  

My drop down list has a list of names from a table called User.  Each name has a value "ExternalUser" true or false.  If an external user is selected from the drop down list I want my Jquery function to fire and show the content.  

Hope that makes some kind of sense.

Many thanks