I want to remove input fields when certain events happen using jQuery:
$('#myInputId').remove();
But if I try it, the surrounding div, which is automatically added by jQueryMobile, is not being removed. So the user still sees a div, which looks like an input field, but which is obviously not usable because the inner input is not there any more.
Does jQueryMobile offer something which is guaranteed not to break when the next upgrade shows up?