Download Add an empty option in select2 when options are created from jQuery book pdf free download link or read online here in PDF. Read online Add an empty option in select2 when options are created from jQuery book pdf free download link book now. All books are in clear copy here, and all files are secure so don't worry about it. This site is like a library, you could find million book here by using search box in the header.
I try to add an empty when I set the options from jQuery but when the page is loaded the fist option is selected. I added allowClear: true, placeholder: "Select...", but it didn't worked. I have found a walk around, to clear the option after I initialize the select2, which works but is there any better solution? $(".select2-it").val(null).trigger('change');
Read : Add an empty option in select2 when options are created from jQuery pdf book online Select one of servers for direct link: |
---|