jQuery help
jQuery help
- Started
- Last post
- 5 Responses
- acescence0
var linkValue = $(this).attr('href');
that has to be inside the click function. as it is, "this" is referring to document, not your anchor
- bort0
Hmmmm. I've moved it inside the click function and still no dice.
- acescence0
oh, i didn't actually read that page you linked...
"As a chained jQuery function, you can call the modal() function on a jQuery element and a modal dialog will be displayed using the contents of that element."
this means you have to pass it a reference to an html element, like a div. you then have to separately load the content using the jquery load method and target that same element.
- acescence0
basically something like this...
- bort0
Thanks dude. You always provide good code help.