×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: userc865b
Added: Jul 4, 2017 1:46 PM
Modified: Jul 4, 2017 2:27 PM
Views: 3
Tags: jq
  1. $("select[name=sel_artikel]").each(function() {
  2.     alert( this.value);
  3. });
  4.  
  5. $("#selectId > option").each(function() {
  6.     alert(this.text + ' ' + this.value);
  7. });
  8.  
  9.  
  10. $(this).find('option').each(function() {
  11.     alert(this.text + ' ' + this.value+'id:'+this.id);
  12. });
  13.  
  14.  
  15. $('#selectIntegrationConf').find('option').each(function(index,element){
  16.  console.log(index);
  17.  console.log(element.value);
  18.  console.log(element.text);
  19.  });
  20.  
  21.  $('#selectIntegrationConf option').each(function(index,element){
  22.  console.log(index);
  23.  console.log(element.value);
  24.  console.log(element.text);
  25.  });