загружал файлы на сервер плагином jquery.form через кнопку submit, встала задача загрузить файл при клике на ссылку
var optionsUpdate = {
target: "#progress-form",
url: "ajax/portfolio/base.php",
beforeSubmit: function(jqForm) {
$('#progress-form').text('Обновление данных...');
},
success: function(responseText) {
if (responseText.indexOf("red") == -1) {
$('#content').html(responseText);
}
else
{
$('#progress-form').html(responseText);
}
}
};
$('#editForm').submit(function() {
$(this).ajaxSubmit(optionsUpdate);
return false;
});
как сделать тоже самое при клике на ссылку