Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,
I need to use a mulitline text box for that I using classic div. I Used herer @html.raw of .net Razor view.
Now I need to get that parent div containing @html.raw in HTML format so save in DB using jquery ajax, and get that HTML from DB to bind to a controller.

What I have tried:

I tried using:
div class="col-xs-12 form-group">
                            <h4>Notes</h4>
                            <div id="editorNotes" data-permision="users_notes">
                                @Html.Raw("Notes")
                            </div>
                        </div>
                        <div class="box-footer">
                            <button type="button" id="btnSaveNotes" class="btn btn-primary  pull-right">Submit</button>
                        </div>


$("#
editorNotes
").html();
but didnt worked.
Posted
Updated 25-Jun-19 1:49am
v3

1 solution

I think you want innerHtml instead of html.
 
Share this answer
 
Comments
faisal23 25-Jun-19 7:51am    
still not working
#realJSOP 25-Jun-19 11:38am    
"Still not working" doesn't tell us sh*t.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900