开发者

prevent autodropdown by jquery datepicker

when I append jquery datepicker to my asp textbox, by cli开发者_如何学Gocking on it, my browser auto shows the history of the dates i typed in a dropdownlist. Can I prevent this?

Set textbox to readonly isn't a good idea because asp.net doesn't read the values from read only fields in code behind.

any other ideas?

thank you and best regards.

marc


if the field is inside a form add

autocomplete="off"

to the form. For example:

<form action=".." method="post" autocomplete="off">

This should prevent the autocomplete function to be activated on the fields inside the form. I don't know if it works on every browser.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜