Files
EasySoft-ZenTaoPMS/module/story/js/batchcreate.js
2014-07-22 09:10:00 +00:00

12 lines
374 B
JavaScript

$(document).on('click', '.chosen-with-drop', function()
{
var select = $(this).prev('select');
if($(select).val() == 'same')
{
var index = $(select).parents('td').index();
var value = $(select).parents('tr').prev('tr').find('td').eq(index).find('select').val();
$(select).val(value);
$(select).trigger("chosen:updated");
}
})