Home  >  Article  >  Web Front-end  >  Create a personalized Select (editable)_form effects

Create a personalized Select (editable)_form effects

WBOY
WBOYOriginal
2016-05-16 19:26:18927browse

Since the system's built-in Select is really not easy to use, here I wrote a brand new Select using javascript.

Function:
1. Editable Select
2. The length can be modified at will
3. Can cover the system Select
4. Support forms
5. Support CSS to modify the appearance
6. Fix the problem of running errors on IE 5.0
7. Support the use of js scripts
Usage
[b]var materialized variable=new editselect(name, length, default string, width, height, read-only)[/b]
[b] materialized variable.add(option value, JS script)[/b]

This is just a beta version, many functions are not perfect, such as not distinguishing between value and caption, etc. I hope everyone can provide valuable opinions.

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