title: passing values from one function to another function in different file using javascript
body: <p>UserList.cshtml</p>
  
  <pre><code>`&lt;script&gt;
      $(document).ready(function () {
                  $(document).on('click', '.View', function () { 
  showDetail($(this), '/Admin/User/'); });    
  &lt;/script&gt;`
  </code></pre>
  
  <p>logical.js</p>
  
  <pre><code>`function showDetails(soid){
        var soid="1234";
        return soid;
  }`
  </code></pre>
  
  <p>User.cshtml</p>
  
  <pre><code>`&lt;div class="InlineButton" style="width: 30px; margin-top: 4px;" 
  onclick="savePassword(soid)"&gt;Save&lt;/div&gt;
  &lt;script&gt;
  function savePassword(soid){
  console.log(soid);
  }
  &lt;/script&gt;`
  </code></pre>
  
  <p>So it's just bits and pieces from the whole code. I am in need of some help to pass the soid from showDetails() in logical.js to User.cshtml.</p>