I encountered a problem today in Suzhou. The text box can only be filled with selected data. Manual entry is not possible. Checked the information. The final solution is as follows.
Page code:
Script (giving text Used when assigning values to the box):
$("#id ").removeAttr("readonly"); //Remove the readonly attribute
$("#id").val("Your value");
$("#id").attr("readonly ","readonly"); //Add the readonly attribute
This achieves this small function
[/code]
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn