xevic

Select from Dropdown

Aug 9th, 2012
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. });
Advertisement
Add Comment
Please, Sign In to add comment