(function(){ var x = document.getElementById('skStep1'); x.onchange = function(){ document.getElementById('f01').submit() } }());