show item request form when an unknown item is selected in select2
问题 I would like to use select2 to show a company search. If the company the user is looking for is not in the current dataset we need to show a company request form to add the data. html <head> <link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-beta.1/dist/css/select2.min.css" rel="stylesheet" /> <script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-beta.1/dist/js/select2.min.js"></script> </head> <body> <select class="js-example-basic-single" name="company"> <option value="1">(FB)