ddd-jquery
Version:
de-bowerified, de-amdified, de-gruntified... jQuery.
14 lines • 559 B
JavaScript
var support = require('../var/support');
(function () {
var input = document.createElement('input'), select = document.createElement('select'), opt = select.appendChild(document.createElement('option'));
input.type = 'checkbox';
support.checkOn = input.value !== '';
support.optSelected = opt.selected;
select.disabled = true;
support.optDisabled = !opt.disabled;
input = document.createElement('input');
input.value = 't';
input.type = 'radio';
support.radioValue = input.value === 't';
}());
module.exports = support;