Hide keyboard when element is on focus

I am trying to stop mobile keyboard from showing when the element on focus is a dropdown but it still does not work. My code looks like below. Any ideas how I can achieve this. The problem is only on mobile.

$("#s2id_autogen1").attr("readonly", "readonly");

It is the “marital status field” on this page.

Since your code looks like jQuery rather than CSS, I am moving this to the JS category.

My apologies, it is jQuery!

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.