jquery javascript error using $(...) selector
Posted
by waitinforatrain
on Stack Overflow
See other posts from Stack Overflow
or by waitinforatrain
Published on 2010-05-31T14:27:30Z
Indexed on
2010/05/31
14:33 UTC
Read the original article
Hit count: 196
Hi,
I'm migrating some old code to jquery:
xmlHttp.onreadystatechange = function() {
if (xmlHttp.readyState == 4) {
$("#" + ajaxArea).html (xmlHttp.responseText);
$("#" + ajaxArea).attr('title', 'Login');
$("#" + ajaxArea).dialog({
height : 140,
modal : true
});
}
};
where ajaxArea is the ID of a DIV in the HTML.
The dialog bit is basically adapted from the jQuery example here: http://jqueryui.com/demos/dialog/#modal
All of it works fine up until the last line. Firefox throws an error that simply says "$(" for that line. Anyone know what might be causing this?
© Stack Overflow or respective owner