title: Jquery.js disabling the 'editable' function of bootstrap-editable.min.js
body: <p>I am working with x-editable. My page has a button that disable/enable the <strong><em>editable property of inputs</em></strong>. Its working  perfect without using Jquery.js file..But my layout includes Jquery.js file and its not working and getting 'typeerror -editable() is not a function'. Without this jquery.js there is no error and its working fine.
  how do i unload this js file from specific page?
    These are the scripts-</p>
  
  <pre><code>*&lt;script id="js-file" src="~/Scripts/js/jquery.js"&gt;&lt;/script&gt;*
  
  &lt;script type="text/javascript" src="~/Scripts/jquery-1.10.2.min.js"&gt;&lt;/script&gt;
  &lt;script src="~/Scripts/js/x-editable/jquery.mockjax.js"&gt;&lt;/script&gt;
  &lt;script src="~/Scripts/js/moment.js"&gt;&lt;/script&gt;
  &lt;script src="~/Scripts/js/x-editable/bootstrap-editable.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p><strong>code of x-editable</strong> :</p>
  
  <pre><code>$.fn.editable.defaults.mode = 'inline';   
      $('.container .editable').editable('toggleDisabled');
      $('#btnenable').on('click', function (e) {      
          e.stopPropagation(); 
          $('.container .editable').editable('toggleDisabled');          
  
      });
  </code></pre>
  
  <p><strong>removing js code:</strong></p>
  
  <pre><code>function removejscssfile(filename, filetype) {    
  
          var targetelement = (filetype == "js") ? "script" : (filetype == "css") ? "link" : "none" //determine element type to create nodelist from
          var targetattr = (filetype == "js") ? "src" : (filetype == "css") ? "href" : "none" //determine corresponding attribute to test for
          var allsuspects = document.getElementsByTagName(targetelement)
          for (var i = allsuspects.length; i &gt;= 0; i--) { //search backwards within nodelist for matching elements to remove
              if (allsuspects[i] &amp;&amp; allsuspects[i].getAttribute(targetattr) != null &amp;&amp; allsuspects[i].getAttribute(targetattr).indexOf(filename) != -1)
                  allsuspects[i].parentNode.removeChild(allsuspects[i]) //remove element by calling parentNode.removeChild()
          }
      }
  
  removejscssfile("/Scripts/js/jquery.js", "js");
  </code></pre>