title: <div> onClick not working?
body: <p>Iam printing some content using php code inside html but, when i tried to click on that div its not calling the function in onClick ??</p>
  
  <p>Here is my php code </p>
  
  <pre><code> echo '&lt;div class="col-sm-12 col-xs-12 " &gt;&lt;div class="row "&gt;';
  echo '&lt;div class="col-sm-10" onClick="openUrlInNewTab("'.$myarray['Job']['link'].'");"&gt;&lt;h3&gt;';
  echo  $myarray['Job']['title']."&lt;/h3&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;";
  </code></pre>
  
  <p>this is resulting html code in "view source" of browser</p>
  
  <pre><code>&lt;div class="col-sm-12 col-xs-12 "&gt;
   &lt;div class="row " &gt;
    &lt;div class="col-sm-10 " onClick="openUrlInNewTab("www.example.com");" &gt;
      &lt;h3&gt;Can you Code? &lt;/h3&gt;
    &lt;/div&gt;
   &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>and here is my function in html page</p>
  
  <pre><code>    function openUrlInNewTab(url) {
  // div click is not reaching  here
       alert(url); 
       window.open(url, "_blank");
  }
  </code></pre>