Set Default value for Enhanced Rich Text Box in SP 2010 using Jquery.

This one was tricky.

If you ever want to set default value for Enhanced Rich Text Box you can use following​ Jquery.

<script language="javascript" type="text/javascript" src="/sites/testsc/Style%20Library/jquery-1.9.0.min.js"></script>

    <script language="javascript" type="text/javascript">
    $(document).ready(function() {    
    
    $('nobr:contains("Desc")').closest('tr').find('input[id$="TextField_spSave"]').val('Hello World !!!');
    });
</script>

This is copied from the thread below.

http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/ae414aec-1dd0-474b-bda7-04092f1c4908/

If you want to insert HTML inside you can simply inesert your HTML as part of setting up value.

$(‘nobr:contains(“Rich Text”)’).closest(‘tr’).find(‘input[id$=”TextField_spSave”]’).
val(‘<table border=”1″><tr><td>Hello </td><td><b>World !!!</b></td></tr></table>’);