How to change text field size by drop-down list value
Hi All.
I have drop-down list and text field in the form and Iwould like to change high and width by selecting value in drop-down list. If that is possible how to do that?
Thanks.
Hi All.
I have drop-down list and text field in the form and Iwould like to change high and width by selecting value in drop-down list. If that is possible how to do that?
Thanks.
Hi,
you can get value from dropdown and applied to text field.
(function(document, $) {
"use strict";
$(document).on("selected", "#dropdownId", function(e) {
var selectVal = $(this).val();
$("#textFieldId").attr("size", selectVal);
});
})(document, Granite.$);
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.