Don't like ads? PRO users don't see any ads ;-)
Guest

Select from Dropdown

By: xevic on Aug 9th, 2012  |  syntax: JavaScript  |  size: 0.92 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. jQuery(document).ready(function(){     
  2.  
  3. var $nameLength = document.getElementById(fieldName).value.length;
  4.  
  5. function decreaseTXT(){
  6.            
  7.  
  8. // document.getElementById(fieldName).value.style.fontSize = document.getElementById(fieldName).style.fontSize="6pt";      
  9. //document.getElementById('cartText791').value= document.getElementById('cartText791').value="|sizeField|340";
  10. var dropDown=$('cartText791').val();
  11. alert($dropDown[1]);
  12.        
  13. }
  14.  
  15.  
  16. alert($nameLength);
  17.  
  18. if($nameLength>20){
  19.  
  20.         var $dropDown;
  21.          $dropDown = $('cartText791');
  22.         alert($nameLength);
  23.       //  decreaseTXT();
  24.         alert($dropDown.val());
  25.  
  26.        
  27.  
  28.  
  29.  
  30.  //document.getElementById('cartText729').style.fontSize = document.getElementById('cartText729').style.fontSize="6pt";
  31.  //document.getElementById('cartText729').value = fieldValue.style.fontSize="7pt";
  32.  //jQuery("#targetText").addClass("smallerText");
  33.  
  34.  
  35.        
  36.  
  37.         }
  38.        
  39.        
  40.        
  41. });