javascriptjquerycssjquery-uijsfiddle

how to include reference in JSFIDDLE


Bit of a beginner at using JSFiddle...trying to recreate an issue in my code. Unsure how to include the correct reference though. For My code I am using:

    <link href="/jquery-ui-1.10.3.custom/css/start/jquery-ui-1.10.3.custom.min.css" rel="stylesheet" type="text/css" />
<script src="/jquery-ui-1.10.3.custom/js/jquery-ui-1.10.3.custom.min.js" type="text/javascript"></script>

So my Q being how do I include these files in JSFiddle. Cant seem to find them from the drop down?


Solution

  • Use the external resource part. JSFiddle automatically identifies it as JS or CSS based on the extension:

    Note: This will only work if the files are publicly available online. If they're only on your local machine, this feature won't work for you.

    If you wanna upload your local file, you can use Gists and put your code in it. Then you can use RawGit to get the working URL and add it there, as usual.