This time I will show you how to use the select tag in HTML, and what are theprecautions for using the select tag in HTML. The following is a practical case, let's take a look. The
select element creates a single-select or multiple-select menu. When the form is submitted, the browser submits the selected items, or collects multiple options separated by commas, combines them into a single parameter list, and includes the name when submitting the
form data to the serverAttributes.1. Basic usage: Volvo Saab Opel Audi Copy after loginAmong them, thetag can be omitted, and the usage in the page 全部 湖北电大网络学习中心 成都师范学院网络学习中心 武汉职业技术学院网络学习中心 Copy after login2. The Select element is OK For multiple selections, see the following code://有multiple属性,则可以多选 高中 大学 博士 //下面没有multiple属性 , 只显示一条,不能多选 高中 大学 博士 //下面是设置了size属性的情况 , 如果size = 3 那么就显示三条数据,注意不能多选的。 小学 初中 高中 中专 大专 本科 研究生 博士 博士后 请选择 Copy after login1. Determine whether there is an Item with a specified value in the select option@param objSelectId 将要验证的目标select组件的id @param objItemValue 将要验证是否存在的值 function isSelectItemExit(objSelectId,objItemValue) { var objSelect = document.getElementById(objSelectId); var isExit = false; if (null != objSelect && typeof(objSelect) != "undefined") { for(var i=0;ihtml copyright symbolhtml online editorhtml web page productionhtml spacewhat is htmlHow to set html font sizehtml to txtHow to write html text box codePopular RecommendationsWhat does url mean?What does DOM mean?How to change image sizeHow to make font bold in HTMLHow to set the size of html imagesPopular TutorialsMore>Related TutorialsPopular RecommendationsLatest coursesThe latest ThinkPHP 5.1 world premiere video tutorial (60 days to become a PHP expert online training course)1396592PHP introductory tutorial one: Learn PHP in one week4209260JAVA Beginner's Video Tutorial2362549Little Turtle's zero-based introduction to learning Python video tutorial493936PHP zero-based introductory tutorial827446The latest ThinkPHP 5.1 world premiere video tutorial (60 days to become a PHP expert online training course)1396592 times of learningJAVA Beginner's Video Tutorial2362549 times of learningLittle Turtle's zero-based introduction to learning Python video tutorial493936 times of learningQuick introduction to web front-end development213601 times of learningMaster PS video tutorials from scratch845498 times of learning[Web front-end] Node.js quick start3352 times of learningComplete collection of foreign web development full-stack courses2713 times of learningGo language practical GraphQL2142 times of learning550W fan master learns JavaScript from scratch step by step480 times of learningPython master Mosh, a beginner with zero basic knowledge can get started in 6 hours11657 times of learningLatest DownloadsMore>Web EffectsWebsite Source CodeWebsite MaterialsFront End Template[form button] jQuery enterprise message form contact code[Player special effects] HTML5 MP3 music box playback effects[Menu navigation] HTML5 cool particle animation navigation menu special effects[form button] jQuery visual form drag and drop editing code[Player special effects] VUE.JS imitation Kugou music player code[html5 special effects] Classic html5 pushing box game[Picture special effects] jQuery scrolling to add or reduce image effects[Photo album effects] CSS3 personal album cover hover zoom effect[Front-end template] Home Decor Cleaning and Repair Service Company Website Template[Front-end template] Fresh color personal resume guide page template[Front-end template] Designer Creative Job Resume Web Template[Front-end template] Modern engineering construction company website template[Front-end template] Responsive HTML5 template for educational service institutions[Front-end template] Online e-book store mall website template[Front-end template] IT technology solves Internet company website template[Front-end template] Purple style foreign exchange trading service website template[PNG material] Cute summer elements vector material (EPS PNG)[PNG material] Four red 2023 graduation badges vector material (AI EPS PNG)[banner picture] Singing bird and cart filled with flowers design spring banner vector material (AI EPS)[PNG material] Golden graduation cap vector material (EPS PNG)[PNG material] Black and white style mountain icon vector material (EPS PNG)[PNG material] Superhero silhouette vector material (EPS PNG) with different color cloaks and different poses[banner picture] Flat style Arbor Day banner vector material (AI+EPS)[PNG material] Nine comic-style exploding chat bubbles vector material (EPS+PNG)[Front-end template] Home Decor Cleaning and Repair Service Company Website Template[Front-end template] Fresh color personal resume guide page template[Front-end template] Designer Creative Job Resume Web Template[Front-end template] Modern engineering construction company website template[Front-end template] Responsive HTML5 template for educational service institutions[Front-end template] Online e-book store mall website template[Front-end template] IT technology solves Internet company website template[Front-end template] Purple style foreign exchange trading service website templateAbout usDisclaimerSitemapphp.cn:Public welfare online PHP training,Help PHP learners grow quickly!