An old problem with IE is that you can’t set the name attribute on form
elements in the DOM directly. Fortunately there is a workaround to this issue
using IE’s mergeAttributes
method. By creating a temporary named element acceptable by IE’s createElement
method, you can merge the name attribute into the element you desire, allowing
you to name or rename an element. An example demo follows.

In Mootools 1.2.1:

Demo:


Leave a Reply

电子邮件地址不会被公开。 必填项已用*标注