Answer the question
In order to leave comments, you need to log in
How to force the tinymce editor to be added to dynamic textarea?
I add textarea by button
$('#add').click(function() {
$('<textarea id="'+i+'" name="option[]"></textarea>').fadeIn('slow').appendTo('#ftable');
i++;
});
Answer the question
In order to leave comments, you need to log in
Well, you can try to generate an id according to the standard and use execCommand
Sandbox
Well, this is a banal ip. For example, this regular expression is fine:
With the port, decide depending on the task. If it is always 80 there, you can get by with the above. Otherwise, something like the following:
((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5] |2[0-4]\d|[01]?\d\d?)(:\d+)?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question