Creating the form like in example 1 and then attaching it will not work - in IE9 it throws a JScript erro ...
stackoverflow.com