I created a input element with jQuery like that:
var element = $('<input />', {
name: name1,
id: id1,
type: 'text'
});
And I want to return the DOM element associated with it. However, element is not a DOM (yet). How can I transform it to DOM element?
You could use element[0]
or element.get(0)
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With