Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to use Select2 jQuery plug-in in a stand-alone HTML page?
    primarykey
    data
    text
    <p>I have used select2 jQuery plug-in inside my Rails app before, that's fine. But, I need to use it inside a stand-alone HTML page. I am using jQuery source from google using this :</p> <pre><code>&lt;script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js'&gt;&lt;/script&gt; </code></pre> <p>But, in order to use select2 jQuery plug-in inside the HTML page, I need to specify the src from an online link. I could not find such link anywhere. (May be I am dumb). SO, for a work around I put the select2 folder in my dropbox folder and using something like this to use select2 plug-in :</p> <pre><code>&lt;script src="https://www.dropbox.com/s/0kizh5ant6aomum/select2.js?dl=1" type="text/javascript"&gt;&lt;/script&gt; &lt;link href="https://www.dropbox.com/s/r8c0pw5r7t791gh/select2.css?dl=1" rel="stylesheet"/&gt; </code></pre> <p>which does not seem to be a good solution to me. Also, some of the images are not working properly and in my javascript console I can see some errors like this :</p> <pre><code>GET https://dl.dropboxusercontent.com/s/r8c0pw5r7t791gh/select2.png 403 (FORBIDDEN) Sample%20HTML%20File.html:55 GET https://dl.dropboxusercontent.com/s/r8c0pw5r7t791gh/select2-spinner.gif 403 (FORBIDDEN) jquery.min.js:4 GET https://dl.dropboxusercontent.com/s/r8c0pw5r7t791gh/select2.png 403 (FORBIDDEN) jquery.min.js:4 </code></pre> <p>SO, what I should I do get a clean solution for my problem ? and what would be the best way of using select2 jQuery plug-in inside a single stand alone HTML page ? Thanks.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload