Remove original message from a SharePoint discussion forum reply via jquery

November 8th, 2011 | Posted by Marijn in code | css | jquery / javascript

Someone on the MSDN forum asked how to remove the original message when replying to a thread in a SharePoint discussion forum.
That smelled like a jquery job to me!!Here is the code, as always don’t forget to reference to the correct jQuery file:

<script type="text/javascript">
var d = $(' .ms-rtestate-write');
d.text("");
</script>

What the code does is: get the item with class ms-rtestate-write and clean out the text in it.

You can follow any responses to this entry through the RSS 2.0 You can leave a response, or trackback.

One Response



Leave a Reply

%d bloggers like this: