HTML Code

Home  >  Article  >  Web Front-end  >  Use CSS and jQuery to simulate select and attach the code to obtain data after submission_jquery

Use CSS and jQuery to simulate select and attach the code to obtain data after submission_jquery

WBOY
WBOYOriginal
2016-05-16 17:19:35900browse

Simulate select with code to obtain data after submission
Use CSS and jQuery to simulate select and attach the code to obtain data after submission_jquery
HTML Code

Copy code The code is as follows :




JavaScript Code
Copy code The code is as follows:



CSS Code
Copy code The code is as follows:

#dropdown{width:186px; margin:100px auto; position:relative}
#dropdown p{width:150px; height:24px; line-height:24px; padding-left:4px; padding-right:30px; border:1px solid #a9c9e2; background:#e8f5fe url(arrow.gif) no-repeat rightright 4px; color:#807a62; cursor:pointer}
#dropdown ul{width:184px; background :#e8f5fe; margin-top:2px; border:1px solid #a9c9e2; position:absolute; display:none}
#dropdown ul li{height:24px; line-height:24px; text-indent:10px}
#dropdown ul li a{display:block; height:24px; color:#807a62; text-decoration:none}
#dropdown ul li a:hover{background:#c6dbfc; color:#369}
#result{margin-top:10px;text-align:center}
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