debug jquery selector
Posted
by Fabian
on Stack Overflow
See other posts from Stack Overflow
or by Fabian
Published on 2010-05-20T23:52:56Z
Indexed on
2010/05/21
0:00 UTC
Read the original article
Hit count: 402
Hi, I am looking for a way to debug what a jquery selector returns/selected. I tried to use toString() but that only returns [object Object].
What I am actually trying to do is to attach a callback to radio buttons. And on click on one of the buttons I want to submit the enclosing form.
Therefore I try to do something like this:
$(".rating").stars({
cancelShow: false,
callback: function(ui, type, value, event)
{
$(this).closest('form').ajaxSubmit();
}
});
But unfortunately just nothing happens.
Thanks a lot, Fabian
© Stack Overflow or respective owner