title: how to use javascript variable in script tag?
body: <p>I want to Use TypeID in another tag. would please help me?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script&gt;
    $(ItemType).change(function () {
    var TypeID = $(this).val();
    });
  &lt;/script&gt;
   
  &lt;div class="form-group"&gt;
      @if(TypeID==1){
        do something
      } else {
        do something
      }
  &lt;div&gt;</code></pre>
  </div>
  </div>
  </p>