i am using CKEDITOR for designing text and all, but its not able to post into the database.
Ajax script for form submit without page change
<script type="text/javascript" src="JS/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="JS/jquery.validate.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#myform").validate({
debug: false,
rules: {
cataName: "required",
cataSeo: "required",
cataMetaTitle: "required"
},
messages: {
cataName: "Wrong",
cataSeo: "Wrong",
cataMetaTitle: "Wrong"
},
submitHandler: function(form) {
// do other stuff for a valid form
$.post('submit?mode=category&value=insert', $("#myform").serialize(), function(data) {
$('.result').html(data);
});
}
});
});
</script>
CKEDITOR JS
<script type="text/javascript" src="JS/ckeditor.js"></script>
Insert Form
<form id="myform" name="myform" action="" method="post">
<textarea rows="10" cols="40" name="cataDesc" class="ckeditor"></textarea>
<input type="submit" value="submit" name="submit" class="sub-btn" />
Post value of cataDesc is not getting in action file. All code are working properly just ckeditor are not working, data is not posting to action file.
<input <type="submit"
– GluePearconsole.log($("#myform").serialize())
– Narendrasingh Sisodiaconsole.log($("#myform").serialize())
or without check your network or try toprint_r($_POST)
– Narendrasingh Sisodia