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.