Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Programming \ jQuery get value drop-down list and select text     - VMware virtual machine to install CentOS 7 (Linux)

- Getting Started with Linux system to learn: How do I know which processes are running on the CPU core (Linux)

- Bitmap memory footprint of computing Android memory optimization (Linux)

- IIS virtual host of safety knowledge (Linux)

- swap space is insufficient cause OOM kill MySQL Case (Database)

- Git Getting Started tutorial (Linux)

- How to enable curl command HTTP2 support (Linux)

- CentOS / Linux SELinux Close (Linux)

- Xmanager Remote Desktop connection CentOS (Linux)

- GRUB2 boot Ubuntu Manual (Linux)

- Linux system security knowledge (Linux)

- Linux beginners to develop the seven habits (Linux)

- 10 important Linux ps command combat (Linux)

- The Gitlab migrated to Docker container (Server)

- Linux Log (Linux)

- Mongo-connector integrated MongoD to achieve incremental Solr index (Server)

- React Native (Programming)

- MySQL5.6.12 Waiting for commit lock lead to hang from the library housing problem analysis (Database)

- Apache POI Excel Document Processing (Linux)

- Linux Basics Tutorial: Linux Kickstart automated installation (Linux)

 
         
  jQuery get value drop-down list and select text
     
  Add Date : 2018-11-21      
         
         
         
  Jsp page drop-down list:

  Select time period:
  < Select name = "timespan" id = "timespan" class = "Wdate">
                             < Option value = "1"> 8: 00-8: 30 < / option>
                             < Option value = "2"> 8: 30-9: 00 < / option>
                             < Option value = "3"> 9: 00-9: 30 < / option>
  < / Select>
When you select the last value, the need to obtain a value corresponding to the selected text and values.

jQuery get value drop-down list to select the code and text:

     var obj = $ ( "# timespan option: selected");
     var artime_val = obj.val ();
     var artime_text = obj.text ();
     alert ( "val:" + artime_val + "text" + artime_text); // val: 3 text 9: 00-9: 30
     
         
         
         
  More:      
 
- Linux system started to learn: the Linux syslog (Linux)
- It is time to upgrade your gulp 4.0 (Programming)
- A script to make your Ubuntu 14.04 Memory screen brightness (Linux)
- Getting Started with Linux system to learn: how to check the version of SSH on Linux (Linux)
- Linux Open coredump (Linux)
- Modifying the system registry protection server security (Linux)
- Configure shared library PCRE (Linux)
- Linux System Getting Started Learning: The Linux anacron command (Linux)
- Partition and file system under Linux (Linux)
- C # dynamic class notes --- (Dynamic) Applications (Programming)
- Ubuntu15 core CLR (Server)
- The maximum subsequence algorithm and optimization problems (Programming)
- mysqldump implement database logical backup (Database)
- Linux NFS FTP use (Server)
- Ubuntu / openSUSE users to install Veusz 1.21.1 (Linux)
- fcntl file locking function add (Programming)
- MD5 and simple to use (Linux)
- Linux cron job (crontab) Examples (Linux)
- Spring MVC Exception Handling (Programming)
- Ubuntu 14.04 CodeBlocks configuration manually compile Boost 1.57.0 (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.