I have a text editor on my form. When I click something in textarea same value displayed in popup of textarea column.
This is my textarea where I have to set result:
<textarea name="content" class="text_editor" id="textarea" ></textarea> View page where I have to get result:
<div class="form-group mod_mr20"> <label class="col-md-3 control-label">Notice Description</label> <div class="col-md-9 col-md-offset-1 hidden_color"> <p></p>//display view here </div> </div> This is my preview button:
<button class="btn btn-primary mr5" data-toggle="modal" type="button" name="submit" data-target="#pre_view" >PREVIEW</button> After display view result in popup user isn't allowed to edit those values
$('#textarea').val(), for example. Also add what you tried in the question, not as a comment.