最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

forms - Chrome browser changes select box options - Stack Overflow

programmeradmin8浏览0评论

Weird one. There's a simple hard-coded select box in a coldfusion form that is changing the values on the front-end display. The code:

<select name="gender" size="1">
<option value="">-</option>
<option value="MALE" <cfif form.gender eq "MALE">selected</cfif>>Male</option>
<option value="FEMALE" <cfif form.gender eq "FEMALE">selected</cfif>>Female</option>
<option value="NON-BINARY" <cfif form.gender eq "NON-BINARY">selected</cfif>>Non-binary</option>
</select>

what's happening, is for ONE user, when in Chrome the select box is appearing as

Bad
Female
Non Binary

It's changing "Male" to "Bad" and "Non-binary" to "Non Binary" only in Chrome. If this user uses Edge, it displays properly. Also, if the user selects "Bad" in the drop down, it'll save correctly as "Male".

I'm thinking it might be a Chrome Extension causing this. Everything I looked into isn't fixing this weird issue. Has anyone seen this before?

发布评论

评论列表(0)

  1. 暂无评论