jQuery Passing $(this) to a Function
you can check this link.
http://jsfiddle.net/zEXrq/38/
$("#f").click(function() {
myFunc($(this));
})
function myFunc(thisObj) {
thisObj.parent().parent().children().each(function() {
alert("childs")
});
}
<div id="wordlist">
<div id="a"></div>
<div id="b">
<div id="e"></div>
<div id="f">child</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
jQuery will automatically invoke your function with the proper context set.
$('#button').on('click', myFunction);
function myFunction() {
var that = $(this);
console.log(that);
}