Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
hello guys after mixing laravel template i have some problem with the jquery with Error: Bootstrap's JavaScript requires jQuery
and after searcing im still confused whats happen can you help me
here is my code :
<script src="{{{ URL::asset('js/ace-extra.min.js')}}}"></script>
<script src="{{{ URL::asset('js/bootstrap.min.js')}}}"></script>
<script src="{{{ URL::asset('js/ace-elements.min.js')}}}"></script>
<script src="{{{ URL::asset('js/ace.min.js')}}}"></script>
`
and error on firefox :
here
Bootstrap JS works with some jQuery elements.
You need to import jQuery before importing Bootstrap JS.
<script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<!-- Then import bootstrap js -->
You have not included jQuery into your HTML. Download that, and include it before bootstrap.
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
i'm trying to make a dynamic dependent dropdown selection , so i got this error in the console when i try to ckeck if the function work or not !
I'am using laravel , ajax , jquery in this project
Also , when i delete the script of the dynamic dropdown box , the error stay
Hope that you can help me
thank you
Usually this has to do with location of your
<script src="something"></script>
make sure you don't have same cdn and make your your link goes before script
something like
<link></link>
<script></script>
All the link should go before script sentence
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
I have done with loading a blade view into another using ajax. But, Javascript written in main file is not working for the loaded file. How can I overcome this issue?
bladeView
<span class="selectable " id="" name="">
Rate Here
</span>
JS in bladeMain
$('.selectable').click(function () {
alert('working');
});
Finally found the solution by using following Jquery function
$(document).on('click', '.selectable', function () {
alert('hi');
});
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I am working in core PHP with the Tinymce editor code.
The Tinymce is working correctly on my localhost. When I upload to a live server it is not working.
The Tinymce editor layout is not displayed on the add new and edit page.
This is my site: http://tinymce.studioscue.in/
Here is the list of jQuery CDN you can add it as follows.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
Maybe your code missed jQuery file, just try adding this, and try again with your code
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I took this css theme which is working with javascript and i have a problem with the a.hover (not working):
http://cssdeck.com/labs/zg4cr9hu
This is the first time i use javascript and i think that the problem comes from the jquery.min.js file i took from the library...
In the <head> i wrote in the html page :
<script src="script_intro.js" type="text/javascript"> </script>
<script src="jquery.min.js" type="text/javascript"> </script>
Is this where the error comes from ? Or should i put something in the js file that i didn't touch (seems good without errors)...
Thanks in advance for answers :)
If you are using jQuery in your first script you have to invert the lines, jQuery first and after the scripts that make use of jQuery.
<script src="jquery.min.js" type="text/javascript"> </script>
<script src="script_intro.js" type="text/javascript"> </script>
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
This doesn't work (placed inside the HTML header tag):
<script src="files/js/animater/index.js" charset="utf-8"></script>
But this works fine (placed inside the HTML body tag):
<script>
$(function() {
$(".active").animate({height: "10%"}, 5000);
});
</script>
Why does the last one work correctly and the first one doesn't?
Take out the script tags in the .js file.
In index.js file write this way,
(function() {
$(".active").animate({height: "10%"}, 5000);
}());
I hope you'll enjoy :)
You need to run your function some how. Like
<body onload="animate()">.
Otherwise you will need some on document load script in your jquery file. More Info
You may need an opening slash in your source path: src="/files/js/animater/index.js" and you shouldn't need the character set attribute. You may also need to add type="text/javascript" as an attribute.