basic modal dialog problem
Posted
by senzacionale
on Stack Overflow
See other posts from Stack Overflow
or by senzacionale
Published on 2010-06-01T06:50:27Z
Indexed on
2010/06/01
6:53 UTC
Read the original article
Hit count: 178
jQuery
image for opening popup.
<div id='basic-modal'>
<a href="#"><input type="image" name="HelpHealthCenter" class="basic" id="imgHelpHealthCenter" tabindex="-1" title="Some text that will display" src="/images/help.gif" style="border-width:0px;" /></a>
</div>
i am using basic modal dialog (first demo) in thi link: http://www.ericmmartin.com/projects/simplemodal-demos/
This is JS for opening popup windows
jQuery(function ($) {
$('#basic-modal .basic').click(function (e) {
$('#basic-modal-content').modal();
return false;
});
});
but i want to read title="" from image instead of reading text from "basic-modal-content" div when popup is opened.
<div id="basic-modal-content">
text on popup window
</div>
Thx for help.
© Stack Overflow or respective owner