$("#upload_link,#upload_link2,#upload_link3").each(function(){ $(this).upload({ //whateveryouwant }); });