Ajax Add/Delete Database Store string

Ggfcezhojjdpj

New Member
http://snipt.org/zime8 | http://snipt.org/zimg1I wrote up a basic Add string app in Ajax. I'm having a hard time with it. What I'm trying to do is be able to delete a string if I add one. How can I wire a submit button to be able to delete a string text? Is it possible to post a string and have it be stored so when you refresh the page it stays on the page?HTML\[code\]<html> <head> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script> <script type="text/javascript" src="http://stackoverflow.com/questions/15893752/database.js"></script> <style type="text/css"> label { text-align:center; } body { background:#fff; font-size:18px; font-family:Georgia;} #datanumber { float:right; width:300px; margin:0 200px 0 0; } ul { margin: 15px 0 0 100px; font-style:italic; font-decoration:underline; } li { padding:10px;} </style> </head><body> <div id="datanumber"> <input type="text" id="message_wall" name="message_wall" /> <button id="submitbtn" type="submit">Add new Task</button> </div> <ul id="wall"> </ul> <body></html>\[/code\]JQUERY\[code\]$(document).ready(function(){ $('#submitbtn').click(function() { var message_wall = $('#message_wall').val(); var $d=$("<li>"+message_wall+"</li>").fadeIn(500,function() { $('#message_wall').val(''); }); $("ul#wall").prepend($d); });});\[/code\]If anyone could help me, I would appreciate it. Thank You
 
Top