You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: entries/jQuery.xml
-14
Original file line number
Diff line number
Diff line change
@@ -187,20 +187,6 @@ $( "<div></div>", {
187
187
}).appendTo( "body" );
188
188
</code></pre>
189
189
<p>The name <code>"class"</code> must be quoted in the map since it is a JavaScript reserved word, and <code>"className"</code> cannot be used since it is not the correct attribute name. </p>
190
-
<p><strong>Note:</strong> Internet Explorer will not allow you to create an <code>input</code> or <code>button</code> element and change its type; you must specify the type using <code>"<input type="checkbox" />"</code>, for example. A demonstration of this can be seen below:</p>
191
-
<p>Unsupported in IE:</p>
192
-
<pre><code>
193
-
$( "<input />", {
194
-
type: "text",
195
-
name: "test"
196
-
}).appendTo( "body" );
197
-
</code></pre>
198
-
<p>Supported workaround:</p>
199
-
<pre><code>
200
-
$( "<input type="text" />" ).attr({
201
-
name: "test"
202
-
}).appendTo( "body" );
203
-
</code></pre>
204
190
</longdesc>
205
191
<example>
206
192
<desc>Create a div element (and all of its contents) dynamically and append it to the body element. Internally, an element is created and its innerHTML property set to the given markup.</desc>
0 commit comments