Is there any way to open Jquery dialog without having element id

Is there any way to open Jquery dialog without having element id

 i have window.showmodaldialog(somepage.aspx,someparam),i want to replace this with jquery dialog.how to do this?

is it necessary to have div or some HTML element to open jquery dialog

$("#someId").dialog();