title: disabling the seat images in bus seat layout
body: <pre><code>if(www[15] != "false") {
    var seatavailablepng="Public2/images/empty-seat.png";
  } else {  
     if(yyy[15] != "false") { 
       varseatavailablepng="Public2/images/ladies-seat.png";
     } else { 
        var seatavailablepng="Public2/images/reserved-seat.png";
     }
  }   
    sts +=  '&lt;td align="right" id="three" name="seat[]" onclick=myfuncset("'+vvv[15]+'",'+fare[15]+') &gt;&lt;a href="#" id="'+vvv[15]+'"&gt;&lt;img src='+seatavailablepng+' alt="" id='+seatestatus+'/&gt;&lt;/a&gt;&lt;/td&gt;';
  </code></pre>
  
  <p>Here if www[15]  is false, then the onclick should not work, means it should not click (disable).</p>