1. Are you ready for the Galaxy S20? Here is everything we know so far!

Issue with hiding elements in DOM

Discussion in 'Android Lounge' started by venkatakrish, Apr 18, 2012.

  1. venkatakrish

    venkatakrish Lurker
    Thread Starter


    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 (Text):
    2. visibility : hidden
    3. display : none
    4. $.hide()
    5. $.remove()
    6. $.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


Share This Page