title: Unable to submit form in chrome extension
body: <p>I am not able to submit form in chrome extension. </p>
  
  <p>When did i try to submit form, then whole page is refreshing instead of submit data and get the result. </p>
  
  <p>Manifest.js:</p>
  
  <pre><code>{
      "name": "BrowserExtension",
      "version": "0.0.1",
      "manifest_version": 2,
      "description" : "Description ...",
      "browser_action": {
          "default_icon": "icon.png" ,
          "default_title": "That's the tool tip"
      },
      "background": {
          "scripts": ["js/jquery-2.1.4.min.js", "background.js"],
          "persistent": false
      },
      "content_scripts": [{
          "matches": ["http://*/*", "https://*/*"],
          "js": ["js/jquery-2.1.4.min.js", "content.js"]
      }],
      "permissions": [
            "tabs", 
             "activeTab",    
             "https://www.irctc.co.in/eticketing/loginHome.jsf"
          ]
  }
  </code></pre>
  
  <p>background.js:</p>
  
  <pre><code>chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) {
     if(changeInfo.status == 'complete')
     {
  
     if(tab.url === 'https://www.irctc.co.in/eticketing/mainpage.jsf')
     {
          chrome.tabs.executeScript(null, {file: "js/autofillMain.js"});
     }
  
     }
  });
  </code></pre>
  
  <p>Autofillmain.js:</p>
  
  <pre><code>   var userName = document.getElementById("jpform:fromStation");
      userName.value = "PUNE JN - PUNE";
  
      var password = document.getElementById("jpform:toStation");
      password.value = "GWALIOR - GWL";
  
      var date = document.getElementById("jpform:journeyDateInputDate");
      date.value = "30-08-2015";
  
      $("#jpform").submit();'
  </code></pre>
  
  <p>Please let me know if you need any other information. </p>