• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Issue with hiding elements in DOM

Hi,

I have a sequence of forms and I have a requirement that when each form is submitted, the "Submit" button must hide and in its place, a "Loading" text must appear and then the next form must load.
I tried all JQuery/CSS alternatives including :

Code:
visibility : hidden
display : none
$.hide()
$.remove()
$.replaceWith()

to hide the submit button from the page. It works when i go in the normal flow. But when i refresh a page and immediately press the submit button, the button does not disappear. It stays there.
All the given approaches work fine in blackberry/apple devices. The issue with hiding the button is only with Android.

Is there any alternative or is it a known bug with Android's defult browser?

Thanks in advance
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones