HTML5 Data Bindings Formatter Support Product Page
Readonly and disabled attributes
Asked 15 Jan 2014 17:47:51
1
has this question
15 Jan 2014 17:47:51 Gianmario Colciago posted:
Please, how I could dynamically enable an input / text and set readonly to true, as in this code?Is it possible with DATA BINDINGS FORMATTER?
<input type="text" name="posizione" class="span3" id="posizione" value="{{posizione}}" disabled readonly>thanks
Replies
Replied 16 Jan 2014 17:39:28
16 Jan 2014 17:39:28 Gianmario Colciago replied:
I used this function
But I want to know if it is possible even with DMXzone extensions.
Thanks.
function inputPublication(position) {
switch(position) {
case 'pos1':
case 'pos2':
$('select[name="sel_biblio"]')
.prop({'readonly': false, 'disabled': false});
break;
default:
$('select[name="sel_biblio"]')
.prop({'readonly': true, 'disabled': true});
break;
}
}
But I want to know if it is possible even with DMXzone extensions.
Thanks.