$(document).ready(function() {
var msg1="<p>Dharambir</p>";
var msg2="<p>Singh</p> ";
$('.ckeditor').html('<p><span style="background-color:#FF0000">Press Button to get text.</span></p>');
$('#butt1').click(function () {
//alert('click');
CKEDITOR.instances['editor'].setData(msg1);
$("#hideval").val("good");
//alert("hh");
});
$('#butt2').click(function () {
//alert('click');
CKEDITOR.instances['editor'].setData(msg2);
$("#hideval").val("good");
});
$('#butt3').click(function () {
//alert('click');
CKEDITOR.instances['editor'].setData(msg3);
$("#hideval").val("good");
});
});
var msg1="<p>Dharambir</p>";
var msg2="<p>Singh</p> ";
$('.ckeditor').html('<p><span style="background-color:#FF0000">Press Button to get text.</span></p>');
$('#butt1').click(function () {
//alert('click');
CKEDITOR.instances['editor'].setData(msg1);
$("#hideval").val("good");
//alert("hh");
});
$('#butt2').click(function () {
//alert('click');
CKEDITOR.instances['editor'].setData(msg2);
$("#hideval").val("good");
});
$('#butt3').click(function () {
//alert('click');
CKEDITOR.instances['editor'].setData(msg3);
$("#hideval").val("good");
});
});
No comments:
Post a Comment
Dharamart.blogspot.in