title: How to send 3 params to a metod in js from MVC View?
body: <p>I Need to send 3 parameters: a checkbox,an int and a string from a Razor View to a js method:</p>
  
  <p><strong>The HTML/Razor code:</strong></p>
  
  <pre><code>&lt;td&gt;&lt;input type="checkbox" class="multi_checkbox" onclick="selected(this,@item.Id,@item.Status)"&gt;&lt;/td&gt;
  </code></pre>
  
  <p><strong>My js method</strong></p>
  
  <pre><code>function selected(checkbox, id, status) {
  if (checkbox.checked) {
          console.log("added: " + id);
          checkedRows.push(id);
      } else {
          console.log("deleted: " + id);
          for (var i = 0; i &lt; checkedRows.length; i++) {
              if (checkedRows[i] === id) {
                  checkedRows.splice(i, id);
              }
          }
      }
      console.log(checkedRows);
  }
  </code></pre>
  
  <p>When i work in this way it throws me an error:</p>
  
  <blockquote>
    <p>(index):1 Uncaught ReferenceError: Rejected is not defined at HTMLInputElement.onclick ((index):1)</p>
  </blockquote>
  
  <p><em>Rejected</em> is the value of <code>@item.Status</code> which is a string with that value.</p>