diff --git a/jquery.jeditable.js b/jquery.jeditable.js index eb8a911..5bfa987 100644 --- a/jquery.jeditable.js +++ b/jquery.jeditable.js @@ -452,8 +452,8 @@ text: { element : function(settings, original) { var input = $(''); - if (settings.width != 'none') { input.attr('width', settings.width); } - if (settings.height != 'none') { input.attr('height', settings.height); } + if (settings.width != 'none') { input.width(settings.width); } + if (settings.height != 'none') { input.height(settings.height); } /* https://bugzilla.mozilla.org/show_bug.cgi?id=236791 */ //input[0].setAttribute('autocomplete','off'); input.attr('autocomplete','off'); @@ -506,7 +506,7 @@ $('select', this).children().each(function() { if ($(this).val() == json['selected'] || $(this).text() == $.trim(original.revert)) { - $(this).attr('selected', 'selected'); + $(this).prop('selected', true); } }); /* Submit on change if no submit button defined. */