title: Javascript in php variable (hide on click)
body: <p>These are the buttons i am outputing on my index.php page from my search.php page: </p>
  
  <pre><code>    $text = '&lt;button id="Da" class="btn btn-success btn-large lineheightsearch greenbutton"&gt;&lt;i class="icon-white icon-ok whiteiconimportant"&gt;&lt;/i&gt;Želim oddati povpraševanje&lt;/button&gt;&lt;button id="Ne"class="btn btn-success btn-large lineheightsearch"&gt;&lt;i class="icon-white icon-remove whiteiconimportant"&gt;&lt;/i&gt;Ne hvala&lt;/button&gt;';
  </code></pre>
  
  <p>This is the div on my index page i am trying to hide with the click on these php echoed buttons:</p>
  
  <pre><code>div id="kategorije"
  </code></pre>
  
  <p>And this is the script i want to use.</p>
  
  <pre><code> &lt;script&gt;
  $( "#Da" ).click(function() {
    $( "#kategorije" ).hide( "slow" );
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>Where do I have to put this script? Thank you for your answers.</p>