debug jquery selector
- by Fabian
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