KubeR Posted September 18, 2013 Share Posted September 18, 2013 (edited) Hi, I want to create a cancel button which replaces back the text that was after clicking the "cancel" button. But the problem is,that the tags does not take affect when I use .html() to restore the previous content with all the tags that it had,they show as plain text. I searched for alternative function or way,but didn't find any. So,my question is : is there any command that can filter the html and make the tags work properly with all the attributes they contain ? Before the hand, thank you, KubeR. Edited September 18, 2013 by KubeR Quote Link to comment https://forums.phpfreaks.com/topic/282261-filtering-html-with-jqueryjs/ Share on other sites More sharing options...
Solution KubeR Posted September 19, 2013 Author Solution Share Posted September 19, 2013 Okay the problem is fixed,the solution was very simple actually,all I had to do is instead of using .html to excute the text from the textarea is use .val haven't realized it because it was between the tags and not in the "value" attribute. Quote Link to comment https://forums.phpfreaks.com/topic/282261-filtering-html-with-jqueryjs/#findComment-1450237 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.