Well the question thing was just an example. Let's keep it simple.
I want this link
to open a dialog containing a form with this hidden element
Each link is generated with a php-loop. Let's say like this:
<input type='hidden' name='id' value='a1' />
... or something to that effect. Now, of course I could just include a
for($i=0; $i<10; $i++)
in the php-loop and then use that as the target for the dialog, but that just seems kind of a brute-force-sort-of-not-very-pretty way to do it.
<div id='a<?php echo $i; ?>'></div>
So I was wondering if there is any way to just make one <div> with the <input type='hidden'>-element in it and then pass the ID-attribute of the clicked link to that.
I don't know if I'm making any sense