I sorted through the top 12 or so questions without coming to an answer, so here's my particular state:
function someFunction( elem ){
var someVar = elem.siblings(':input[type=radio]').attr('name');
console.log( group );
}
$('my-element').on('click', $(this), someFunction );
This give me a 'Object has not method siblings' error. Originally I had the contents of somefunction inside the .on event handler as a function and things worked fine. I understand that I'm missing something with regards to how jQuery is casting $(this) about, but I'm uncertain as to what it may be. I can dump elem from inside someFunction and see the element I'm after, but I cannot manipulate it.
Any pointers?