title: Get script on option select with this value
body: <p>I am using a select box to pull some data that is built into the site. However there are a few modules that run a script , and using the select option , that script is not firing when its selected. Do i have to run the full script within my option function , or can it be called to execute again when its selected.</p>
  
  <p>Here is my script and html. Option Value "MESSAGE12" - needs a script to run when selected.</p>
  
  <pre><code>if(unescape(location.href).indexOf("http://football")!=-1||unescape(location.href).indexOf("http://6")!=-1) { 
      var currentServer=baseURLDynamic;
      xmlBaseURL = baseURLDynamic + '/fflnetdynamic' + year + '/';
  } else {
      var currentServer=baseURLStatic;
  }
  function getHomePageModule(thisSelection) {
      if(thisSelection=="")
      document.getElementById("homePageModule").innerHTML = "Your selected module will appear here!";
      else {
      var url = currentServer + "/" + year + "/home/" + league_id + "?MODULE=" + thisSelection.toUpperCase();
      $.get(url, function(data){
      document.getElementById("homePageModule").innerHTML = $(data).find('#pageContent').html();
      });
      }
  }    
  
  
  &lt;select onchange="getHomePageModule(this.value)"&gt;
  &lt;option value="default"&gt;Select A Module&lt;/option&gt;
  &lt;option value="MESSAGE12" &gt;Get HPM#12&lt;/option&gt;
  &lt;option value="LIVESCORING" &gt;Link To Live Scoring&lt;/option&gt;
  &lt;option value="LIVESCORING_SUMMARY" &gt;Live Scoring Summary&lt;/option&gt;
  &lt;/select&gt;
  
  &lt;div id="homePageModule"&gt;Your selected module will appear here!&lt;/div&gt;
  </code></pre>
  
  <p>Here is a link to my demo select box - <a href="http://football29.myfantasyleague.com/2015/home/72758?MODULE=MESSAGE11" rel="nofollow">http://football29.myfantasyleague.com/2015/home/72758?MODULE=MESSAGE11</a></p>
  
  <p>And a link to the MESSAGE12 content i'm wanting to fire up in the select box
  <a href="http://football29.myfantasyleague.com/2015/home/72758?MODULE=MESSAGE12" rel="nofollow">http://football29.myfantasyleague.com/2015/home/72758?MODULE=MESSAGE12</a></p>
  
  <p>Any advice appreciated</p>