Я использую Jeditable в своем JSP, чтобы отредактировать контур таблицы. Я создал дополнительную кнопку, кроме ОК и Отмена с помощьюЧтобы получить ID кнопки, нажатой на кнопку
submit : '<button type="submit" class="ok" id="ok" value="ok">OK</button> <button type="submit" class="gotourl" id="res" value="Reset">Go To URL</button>'
Но я не в состоянии различить, какая кнопка пользователь просто щелкнул, является ли ее ОК или Отмена. Попытка за последние 4 дня ..... ниже мой полный код ...
$('.edit_area').editable('http://131.247.19.103:80/trimms_1/parameters.action', {
type : 'textarea',
cancel : 'Cancel',
callback : function(value, settings) {
window.location.reload();
},
submit : '<button type="submit" class="ok" id="ok" value="ok">OK</button> <button type="submit" class="gotourl" id="res" value="Reset">Go To URL</button>',
third : 'Alert!',
indicator : '<img src="img/indicator.gif">',
id : '$(this).attr("id")',
submitdata : function() {
var id2 = '${param.city}';
return {city: id2, tableid: $(this).closest('table').attr('id'),
rowid: $(this).parent().index(),button: selectedId}},
tooltip : 'Click to edit....',
name : 'newvalue'
});
помощь ???????? ????? –