function fillHiddenFields() { jQuery('#page\\:h1').val("new " + jQuery('#page\\:h1').val()); jQuery('#page\\:h2').val("new " + jQuery('#page\\:h2').val()); jQuery('#page\\:h3').val("new " + jQuery('#page\\:h3').val()); } // todo: the test code is not full automated
Click 'fill' and than 'submit' and check that the 2. field has not modified, because the hidden field 2 has rendered=false