jQuery addClass example

Change class name on click in jQuery

by Daniil464

JavaScript

function myFunction() {
        var str = "<p>hello</p><script>console.log('hello')</script><h1>Test</h1><script>console.log('world')</script>";

        alert(myString.split(/(<script>|<\/script>)/));
}
alert(myFunction)