I need to get the form element of the active page without using the form id. Basically I'm dealing with dynamic external content and can't rely on the form id as it may change. Also, it's possible that there may not be a form on the page.
$.mobile.activePage
.?
Try:
$.mobile.activePage.find("form")
or
$("form", $.mobile.activePage)