Код: Выделить всё
var ProductName = $('#Product').attr('name'); // #Product is hidden form element
var ProductID = $('#Product').val();
$.ajax({
type: 'post',
url: 'form/processor/page',
data: {
SomeElement: ItsValue,
AnotherElement: ItsValue,
ProductName: ProductID // this one must be dynamic
},
....
Как я мог это сделать? < /p>
Подробнее здесь: https://stackoverflow.com/questions/312 ... ata-submit
Мобильная версия