I have:
<body marginwidth="0" marginheight="0" contenteditable="true"
class="bootsy required form-control bootsy_text_area wysihtml5-editor"
spellcheck="true"
style="color: rgb(85, 85, 85); cursor: auto; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; line-height: 20px; letter-spacing: normal; text-align: start; text-decoration: none; text-indent: 0px; text-rendering: auto; word-break: normal; word-wrap: break-word; word-spacing: 0px; background-color: rgb(255, 255, 255);">
</body>
I used the following code, but it's not working:
if ($("body").hasClass("wysihtml5-editor")) {
$("body").html('this is a test content.');
});
I am using bootsy in my rails app, which generates this body tag in my source code in the browser.So, i want to first find out this body tag with class and then set some value to it using jquery. Please help me out.