Home  >  Article  >  Web Front-end  >  JS pay attention to clearing the parameters in the input text box

JS pay attention to clearing the parameters in the input text box

不言
不言Original
2018-04-10 13:42:464439browse

The content of this article is about clearing the parameters in the input text box. Friends in need can refer to

$("#nameSS"). textbox('setValue',' '); //The flaw of this method is that spaces will be added by default the next time it is dynamically assigned, which will result in the originally searchable data not being found.

##$("#nameSS").textbox('setValue') ;//You can clear it this way

The above is the detailed content of JS pay attention to clearing the parameters in the input text box. For more information, please follow other related articles on the PHP Chinese website!

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