We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23f4b24 commit d19e4c7Copy full SHA for d19e4c7
jquery.custom.forms-0.5.js
@@ -186,7 +186,15 @@
186
187
createFakeElement: function(element, type) {
188
var value = (type == 'select') ? $(element).children('option[value="'+element.get(0).value+'"]').html() : '';
189
- return $('<span class="'+ this.setClass(type) +'">'+ value +'</span>');
+ var disabled = element.attr('disabled') !== undefined
190
+
191
+ var fakeElement = $('<span class="'+ this.setClass(type) +'">'+ value +'</span>');
192
193
+ if (element.attr('disabled') !== undefined) {
194
+ fakeElement.addClass(this.setClass('disabled'));
195
+ }
196
197
+ return fakeElement;
198
},
199
200
isRadio: function(element) {
0 commit comments