Can I iterate through for loop to create more javascript?
<p>I need to have multiple <code>.click()</code> functions populated on page load, based on how many image records are stored within a mysql database.</p>

<p>so far i have a page that will nicely switch between photos with a <code>&lt;ul&gt;</code> of image buttons</p>

<p>but i have to hand write the jquery that deals with it.</p>

<p>is there a way that i can populate a <code>.js</code> file with the correct amount of <code>.click()</code> functions based on the amount of records on in the data base.</p>
