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');
});
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 2 years ago.
Improve this question
I don't know how to get "onclick" effect. I mean how to open new site by click menu. Below i attached example. Please tell what can i do.
https://bslthemes.com/ryan/demo/index-new-no-photo.htm
With addEventListener you have an univerdal method to respond on the click event. Instead of <div> you may use <button> or any other element, that's up to you.
<div id="whatever">Click me</div>
<script>
document.querySelector("#whatever").addEventListener("click", function() {
window.location.replace("https://stackoverflow.com/");
});
</script>
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 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 7 years ago.
Improve this question
I have this:
<div id="something">
content
</div>
And I need change something to somethingnew by using jQuery, so:
<div id="somethingnew">
content
</div>
How can I do it? I've tried function attr, but it doesn't work.
Thanks for advices.
This this:
$("#something").attr("id", "somethingnew");
Try this.
$("#something").attr("id","somethingnew");
$("#something").attr("id", "somethingnew"); should work just fine
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 7 years ago.
Improve this question
I have link that need url of the page, how to get the page url then insert in the link url with JavaScript?
For example, if the page url is http://example.com/blabla/blablabla/bla/
and i don't know how to make JavaScript that combine page url and JavaScript.
GoToLink
to link like this
GoToLink
GoToLink
give it an ID then manipulate throw javascript
<a id="a1" href="#" rel="nofollow">GoToLink</a>
<script>
document.getElementById("a1").href="http://link.cu/abc="+window.location.href;
</script>