Skip to content
Snippets Groups Projects
Commit 0fa819f4 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

disallow user to edit dropdown HTML element

parent 84e25338
No related branches found
No related tags found
1 merge request!143voucher should keep information about person who issued it
Pipeline #
...@@ -23,8 +23,10 @@ $(document).ready(function () { ...@@ -23,8 +23,10 @@ $(document).ready(function () {
} else { } else {
return true; return true;
} }
}) });
//disable all dropdown HTML select elements that should be readonly but aren't
$("select[readonly] option:not(:selected)").attr('disabled','disabled');
}); });
$.ajaxSetup({ $.ajaxSetup({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment