To trigger everytime with .click()?
Posted
by Dejan.S
on Stack Overflow
See other posts from Stack Overflow
or by Dejan.S
Published on 2010-04-27T10:25:08Z
Indexed on
2010/04/27
10:43 UTC
Read the original article
Hit count: 226
I tried to have a .click()
on a <a>
to find out it wont trigger every time I click, what it suppose to do is open a dialog.
That is not the only problem I would need to pass a value to my jquery to. I just cant figure this one out.
I need it to be a <a>
because it's gone be in a dropdown menu. Do you got any suggestions?
this is the code I use so far
$(document).ready(function() {
$('a').click(function() {
var first = "<iframe style='width: 100%; height: 100%;' src='" + need to put value here + "'</iframe>'";
$('.iframe').html(first);
$('#dialog').dialog({ bgiframe: true, modal: true, height: 600, width: 1000 });
});
});
thanks guys
© Stack Overflow or respective owner