I am trying to grab an id dynamically using to load up content in a modal window, but I am having difficulty grabbing the id.
Here is the example I posted up on JSFiddle
The divs with class ticket_details and anchor tag with class dialog_link is generated dynamically using PHP.
If you need more clarification, let me know! Thanks for your help.
The following selector
var e = $('.ticket_details');returns a list of divs. What you need to do is iterate through all of the returned divs and do whatever you want, something like this:$('.ticket_details').each(function () { console.log($(this).attr('class')); });