সহায়তা খুঁজুন

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How do I use jQuery in my Thimble project

  • 1 উত্তর
  • 6 এই সমস্যাটি আছে
  • 5 দেখুন
  • শেষ জবাব দ্বারা gregonicus

more options

I want to include some javascript to animate elements in my project with jquery. I plan to hack at this but I don't see any reference to usage of external libraries in documentation or by web searches, so I hoping that it is possible. I am surprised that I seem to be the first to ask this.

I want to include some javascript to animate elements in my project with jquery. I plan to hack at this but I don't see any reference to usage of external libraries in documentation or by web searches, so I hoping that it is possible. I am surprised that I seem to be the first to ask this.

All Replies (1)

more options

Ok - "solved" it. It just works as you think it would - with one extra step.

1. include standard script entries in the header (1 for jquery, 1 for my custom code)

 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
 <script src="script-1.js"></script>

2. Add some jquery code to your js...

$(document).ready(function() {

 alert($("head title")[0].innerHTML);

});

THAT EXTRA STEP: Click the circle-arrow button to refresh the preview. (Doh!)

Yeah - the site is so responsive - i didn't even notice there was a refresh button.