I am having a conflict between
<script src="assets/vendor/jquery/jquery-3.3.1.min.js"></script>
and the
<script src="//code.jquery.com/jquery-1.12.4.js"></script>
<script src="//code.jquery.com/ui/1.12.1/jquery-...
I have input of type text , where I can enter a search, which is executed via ajax, as the user types. Below this I have a list of items that were found in table . When I click on this table, I change the style of the row clic...
Is it possible to perform a POST-type request to a url that is not part of the domain of our application?
$.ajax({
type: "POST",
url: "http://www.dominioexterno.com.br/acao/",
data: {
var1: $('#input1').val(),
var2:...
I have the phrase: " Tomorrow it will rain ".
I want to get the last word and leave it like this:
" Rain, Tomorrow will ".
I'm doing it this way:
var frase = 'Amanhã vai chover';
var palavra = strg.split(' ')[0];//
I can get the: Tomor...
I have a simple function in jQuery, however it is displaying the error:
Uncaught RangeError: Maximum call stack size exceeded
To illustrate, there are 2 or 3 links that I have on the page
<a id="islpronto_link" href="javascript:vo...
I'm having problems, because my code is conflicting with minjquery, I do not know what happens, when I put all my other codes I have do not work .... Please help me!
link
Thanks to everyone for the help, I decided to put the latest versi...
I created a div.box in the html and in it I want to insert another div that I create in the code execution, follow the abbreviation:
HTML:
<div class="box"></div>
JS:
var item = $('<div />', {class: 'item'})
var box =...
I have two inputs, when I automatically click they become readonly, I'm doing so:
<script>
$(document).on('click', '#outros,#txtOutros', function() {
$('#outros').attr('readonly', true);
$('#txtOutros').attr('readonly...
In jQuery, you can set values for an attribute by data .
So:
$('body').data({id: 1, nome: 'stack'});
And the result would be:
console.log($('body').data()); // {id: 1, nome: 'stack'}
But if I want to rewrite the object, I can...
Looking at jQuery materials I noticed that some articles use two types of variable declarations, some using the dollar sign and some not, as in the example below:
Alternative 1
var $row =$("<tr/>")
Alternative 2...