I am trying to find out how to pass that a variable string staffID into an id selector in the load() function. Here is the piece of code:
$('li.staffAsset').click(function () {
var staffID = $(this).attr("id");
openDialog('#descrDialog');
$('#staffDescr p').load('/staffDescr.html $("#" + staffID)');
});
This doesn't work. Basically there are divs with id="staffID" inside the staffDescr.html. I just can't seem to find the proper syntax to pass that variable string as a proper id into the load() function. Can anyone help please?