i do have text-box and two check boxes which i am able to clear its values on button click:
$("#cleartext").live('click', function () {
$(this).parents('form').find('input[type="text"]').val('');
$(".check").attr("checked", false);
});
but i do have a textarea in which i am using the html editor but i am not able to clear the value of it so please suggest me on this the view of this elements are as follows:
<input type="text" id="title" name="title" required title="required" placeholder="title" data-bind="value:title" />
<input type="checkbox" id="active" name="active" class="check" data-bind="checked: active=='true'" />Active
<input type="checkbox" id="logon" name="logon" class="check" data-bind="checked: use_logo=='true'" />Logo
<textarea id="iiii" name="iiii" class="htmleditor" rows="9" cols="50" style="width: 600px; height: 190px;"></textarea>
<button type="button" class="btn" id="cleartext">New Contract</button>