I am creating a menu that opens and closes using jQuery. In simple terms, it works like this:
function open_menu() { $(this).next(\'ul.sub-menu\').css(\'
You can use apply to set the value of this in the function.
this
open_menu.apply(this)