Today I was rewriting a piece of javascript code that was based on Prototype into a jQuery based script. It involved the creation of some elements and it seemed like jQuery is not as nifty as Prototype is for creating elements. After some research I found a great plugin, however it was not compatible with some browsers regarding the creation of input and select elements at runtime. Therefore I adjusted this script just a little to make it compatible. The jQuery plugin to create elements can be found here.
Feel free to use it and if you have any remarks on this piece code, feel free to share them in the comments.


Discussion
Comments for “Create elements via DOM and jQuery”