How can I update the DOM with a new element of an added record after a call?
Should I return the newly inserted contents of a db record on callback and then add using jquery?
I ask for advice if there is not enough data to answer the question.
$(function(){ $('#postentry').submit(function() { var tyu = $('#tittle_ent').val(); if(tyu.length <= 2) {alert('Enter More Text!'); return false;}else { $.post( "posts_in.php", $("#postentry").serialize(), function(data){
Each entry is as follows:
<div id="post349" class="myclass"> This is some text. </div>
source share