title: Remove server side validation formatting changes on change
body: <p>I have a function that validates input server side and sets the focus to the missing item and also make the item border red. This all works fin, I am struggling with how to handle removing the red border once the selected index has changed or the text box has a value? What is the best way to handle this? Javascript? I have tried the below javascript, but since the fields and dropdowns are located in usercontrols, I am not sure if this is corrrect. I have tried placing the javascript in both the server control ascx page and the aspx page where the submit button is.</p>
  
  <p>Javascript:</p>
  
  <pre><code> $(document).ready(function () {
              var companyRelation = document.getElementById('&lt;%=ddlCompanyRelationship.ClientID %&gt;');
              $('#ddlCompanyRelationship').change(function () {
                  if (companyRelation.options.value != "-1") {
                      companyRelation.style.border = "#bebebe";
                  }
              });
          })
  </code></pre>