Hi, Im building a search engine for my website. And i want to have a button on each searchresult that a dilog will showup with more info. Like this: Searchresult: Google.se (button) ------------------ Yahoo.com (button)
and so on... But i dont know how to crate a "dynamic" javascript for the dialog function. AS i understand it when u do like this. <script language="javascript" type="text/javascript"> $(document).ready(function() { // Tell jQuery that our div is to be a dialog $('#dialogTest').addClass('flora').dialog({ autoOpen: false }); $('#bttn1').click(function() { $('#dialogTest').dialog('open'); }); }); </script> Its static only to the "bttn1". Who to do the script dynamic to work with every ID bttn1?