I am making a social networking site wherein i have an href link ,clicking on which i want to display some names which i will be retrieving from my db.
For example:in facebook,when we click on the number of likes, a menu pops up above all the content which displays who all liked our picture,and we cant scroll or click on the main content unless we close this menu.I want exactly the same thing.
I tried using dialog modal of this link
but i am facing the following problem.
Each different post should have this open dialog button (the button shown in the above link).Thus i am putting the div dialog tag in a for loop due to which when i click any one of the open dialog button then as many dialog box open as the number of buttons i have displayed .(i have tried assigning each button a different id [i assigned the loop variable as id,so that each iteration brings a new id and subsequently a new button] but didnt have any effect).
Note to self: don't get into a fist fight with a cactus. Command this tiny ad to do it: