title: Javascript - If Last Character of a URL string is "+" then remove it...How?
body: <p>This is a continuation from an existing question.  <a href="https://stackoverflow.com/questions/6244987/javascript-goto-url-based-on-drop-down-selections-continued">Javascript - Goto URL based on Drop Down Selections (continued!)</a></p>
  
  <p>I am using dropdown selects to allow my users to build a URL and then hit "Go" to goto it.  </p>
  
  <p>Is there any way to add an additional function that checks the URL before going to it?</p>
  
  <p>My URLs sometimes include the "+" character which I need to remove if its the last character in a URL. 
  So it basically needs to be "if last character is +, remove it" </p>
  
  <p>This is my code:</p>
  
  <pre><code>$(window).load(function(){
      $('form').submit(function(e){
          window.location.href = 
              $('#dd0').val() +
              $('#dd1').val()+
              $('#dd2').val()+
              $('#dd3').val();
          e.preventDefault();
      });
  });
  </code></pre>