rem: $( new_row ).getElementsBySelector('select')[1].value = value; 
add:   if ( $( new_row ).getElementsBySelector('select')[1] ) $( new_row ).getElementsBySelector('select')[1].value = value; else $( new_row ).getElementsBySelector('input')[1].value = value; 
context: function search_row_add( list, key, value ) {  var template_row = $('search_template').getElementsBySelector('li')[0];  var new_row = template_row.cloneNode(true);  var row_id = search_row_counter;  search_row_counter++;  attribute_replace( new_row, /\[row_id\]/g, '[' + row_id + ']' );  new_row.className = row_id;  $('advanced_search_list').appendChild( new_row );  if ( key && value ) {    $( new_row ).getElementsBySelector('select')[0].value = key;    $( new_row ).getElementsBySelector('select')[0].onchange();    $( new_row ).getElementsBySelector('select')[1].value = value;  } else {    $( new_row ).getElementsBySelector('select')[0].onchange();  }}
meta: 2782	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2782/8ba84639aa2fccbabfd1440193086299cdf4fc90/application.js/clean/rails/public/javascripts/application.js