0

I need to detect if the drop-down list is currently present in the screen to hide the footer of the app. I found this solution for the keyboard:

document.addEventListener("showkeyboard", function() {
    $("#footer1").hide();
}, false);

source: find keyboard is visible using jquery

Now I'm looking for a way to detect the drop down list. Thanks.
Sample image:

Drop down list

2
  • Can you please provide code snippet to show the drop down list.? Commented Jun 10, 2014 at 4:00
  • @jeek online It's just the usual <select></select> element, is it really necessary to show that code? when tapped, it opens the phone's default drop down list. I'll attach an image in a moment. Commented Jun 10, 2014 at 4:44

1 Answer 1

0

Try this :

$("<your selector of select tag>").click( function () {

  $('#footer1').toggle();

});
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.