Hi I am having problem with my dynamic add textarea,
I need to have niceEdit html editor in all my textarea, It works good on hardcoded textarea but when I use my javaScript dynamic add function to to produce textarea it does not obtain the nicEdit html editor.
could anyone tell me what I'm missing here. Any comments and suggestion is well appreciated.
here's my jsfiddle
Take it step by step. You need to instantiate for the new nicEditor Instance on each newly added controls.
Demo
Full Update with add/remove functionlity:
Demo
Note
live()
is deprecated and discontinued in newer version so useon()
with event delegation for dynamically created elements. Also change id to class for the remove link.remScnt
as duplicate id can cause issues and make the html invalid