daily pastebin goal
8%
SHARE
TWEET

Untitled

a guest May 27th, 2018 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function setSelects(a, b){
  2.     var i;
  3.  
  4.     //alert(document.getElementById('add_serving_description_rec').options[3].value);
  5.     for(i=1; i < 25; i++){
  6.         if( $('add_serving_description_rec').options[i].value == a ){
  7.             $('add_serving_description_rec').options[i].selected = true;
  8.         }
  9.     }
  10.  
  11.     for(i=1; i < 3; i++){
  12.         if( $('add_serving_description_2_rec').options[i].value == b ){
  13.             document.recipeForm.serving_description_2_rec.options[i].selected = true;
  14.         }
  15.     }
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top