0
我目前正在使用Google商家信息自動填充,並取得了巨大成功。我想要做的是強制選擇自動完成列表中的第一個選項,但只有在只顯示一個選項的情況下。Google商家信息自動填充功能,如果它是唯一可見選項,則強制選擇第一個選項
我不喜歡在顯示很多選項時強制選擇第一個選項的想法。今天我注意到,一個大型的英國房地產網站Rightmove強迫我請求相同的行爲。這似乎更多的用戶友好的方法。
我已經搜索了所有關於SO的問題,並且之前沒有詢問過。有誰知道如何編碼?