title: How to bind click event of button into PartialView (MVC)?
body: <p>I make a page in asp.net MVC .In this page exist a View and a PartialView.I put button into partialview and write <strong>Countinue</strong>  function into View.</p>
  
  <p>button: </p>
  
  <pre><code>    &lt;button type="button" class="btn btn-warning center-block btn-large" id="Continue" onclick="Continue(this);"&gt;Continue&lt;/button&gt;
  </code></pre>
  
  <p>js:</p>
  
  <pre><code> var Continue=function (e) {
              e.preventDefault();
              if ($('#FieldsetCharterFlightsReturn article').size() &lt; 1) {
                  if (validateDeparturef(e)) {
                      $("#CharterFlightsForm").submit();
                  }
  
              }
                          if ($('#FieldsetCharterFlightsReturn article').size() &gt; 0) {
                  if (validateDeparturef(e) &amp;&amp; validateArrivalf(e)) {
                      $("#CharterFlightsForm").submit();
                  }
              }
          };
  </code></pre>
  
  <p>Now When i click on the button get this error:</p>
  
  <blockquote>
    <p>TypeError: Continue is not a function</p>
  </blockquote>
  
  <p>What is right way to bind event of elements into PartialView?</p>