treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Pass A Variable to a Jquery Modal Window

  • G'day Everyone

    I am not sure whether this is possible or not, but I will give it a go anyway.

    I want to pass a variable via a normal a href link (eg: page.php?tc=value), but instead of going to another php page I am trying to use a modal window to display the content based on the value of that variable.

    The a href link goes to a specific div element eg(#dialog) which then applies the mask and modal window opend so I have been trying this #dialog?tc=value but the modal window will not "activate"

    Does anyone have any ideas as to how I could get this going