Home › Forums › Back End › How to live update DOM with ajax? › Reply To: How to live update DOM with ajax?
May 6, 2014 at 1:18 am
#169303
Mary Parker
Participant
I think this code will help you. <html>
<head>
<script type=”text/javascript” src=”jquery-1.3.2.min.js”></script>
<script>
$(document).ready(function(){
$(“.edit”).click(function(){
$(this).parent().load(“edit”);
});
$(“.view”).click(function(){
$(this).parent().load(“view”);
});
});
</script>
</head>
<body>
<input type=’submit’ class=’edit’ value=’Edit’>
</body>
</html>