I need to add 'wsqmylogin' to existing class.
I trired the following codes, but they all don't add it.
Would you please let me know how to solve this problem?
Existing Code (created by plugin YITH):
<form id="yith-ywraq-default-form">
<p class="form-row " id="message_field" data-priority="">
<textarea name="message" class="input-text " id="message" placeholder=""></textarea>
</p>
</form>
I tried:
jQuery('#yith-ywraq-default-form #message_field textarea[class="input-text"]').each(function()
{ this.setAttribute('class', 'wsqmylogin'); });
jQuery("#yith-ywraq-default-form #message_field textarea").prop("classs","wsqmylogin");
jQuery("#yith-ywraq-default-form #message_field .input-text").prop("wsqmylogin")
Thank you.