JQLite also doesn't have closest.

Instead, use input.form. Its fine.