Tiggles ツ
1/30/2018 - 8:11 PM

Dropdown Blank default

Sitewrench forces user to select an option in dropdown by default. This will select the first option (normally a blank one)

$(document).ready(function() {
  $('.formmodule-dropdownlist').each(function(){
      $(this).find('option').attr('selected','');
      $(this).find('option:first-child').attr('selected','selected');
  });
}); //end doc ready