ajaxSubmit return data append

I am trying to make an upload picture gallery using ajax . I am using the ajaxSubmit of the ajax form .. Here is what i am doing

                target: '#picture',
                success:  afterSuccess 

but what this does is that it removes the previous html in the div and replaces it with the new return data. what i want is to append the new image with the previous data in the #picture div . Please help me out


Use the append function, success: function(data) { $("#div").append(data); }.

Need Your Help

Creating a common style gem

ruby-on-rails rubygems twitter-bootstrap gem

We are creating several applications (new development) at our company. To try and establish a common look and feel between these apps I would like to create a gem that:

Deleting rows with value of checkboxes

php html checkbox mysqli

I'm having problems with deleting rows from the DB with checkboxes. I don't know how to delete multitple rows from the DB with checkboxes. The problem is that when I press delete it will only delet...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.