Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End How to live update DOM with ajax? Reply To: How to live update DOM with ajax?

#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>