【发布时间】:2014-07-02 11:01:52
【问题描述】:
这适用于 Chrome,但不适用于 Safari:
require(['jquery'], function($)
{
// store the value of the previous selected radio control
// before the current one gets selected
$(document).on('focus', 'input[type=radio]', function () {
// search all radio input fields with the same name within the same form
// and store the value of active one into the oldValue property
$(this).data('oldValue', $(this.form[this.name]).filter(':checked').val());
});
});
sn-p 的哪一部分导致了问题?我在这里的黑暗中踩踏......
【问题讨论】:
标签: jquery html forms radio-button