title: Uncaught SyntaxError: missing ) after argument list in codeigniter
body: <p>I am sending session ip address controller to view and taking this variable in javascript function but i am getting an error. </p>
  
  <p></p>
  
  <pre><code>var url = "&lt;?php echo base_url(); ?&gt;";
  function allowip(ip) {
  
    var ip = prompt("Please enter your ip address", ip);
    if (ip == null || ip == "") {
  
     alert('fill it please');
  
    } else {
     alert('ok');
    }}
  </code></pre>