So simple, not seeing the problem. Can someone take a look for me. Thanks.
Error: SyntaxError: missing : after property id
$(document).ready({
$('#ajax-palaceholder').load('http://localhost/devlab/users.php');
});
So simple, not seeing the problem. Can someone take a look for me. Thanks.
Error: SyntaxError: missing : after property id
$(document).ready({
$('#ajax-palaceholder').load('http://localhost/devlab/users.php');
});
Share
Improve this question
edited Apr 2, 2013 at 15:19
Denys Séguret
383k90 gold badges811 silver badges776 bronze badges
asked Mar 31, 2013 at 14:45
Carl BarrettCarl Barrett
2295 silver badges16 bronze badges
2 Answers
Reset to default 6You probably wanted
$(document).ready(function(){
$('#ajax-palaceholder').load('http://localhost/devlab/quedata_v2/users.php');
});
.ready
takes a function as argument.
You got this ": missing after property id"
error message because {something}
looks like an object literal but would normally be {propertyid:propertyvalue}
.
You need a function as argument inside document.ready
Try this
$(document).ready(function(){
//--^^^^^^---here
//your code;
})
or the document.ready
shorthand ..
$(function(){
//your code
});