Questions tagged as 'jquery'

1
answer

Conflict between jquery.js

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-...
asked by 03.12.2018 / 09:09
4
answers

How do I prevent the input-text focus from being lost when I click on another element?

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...
asked by 13.02.2014 / 14:15
4
answers

How to make Ajax requests, with Jquery, in different domains?

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:...
asked by 09.04.2014 / 15:09
2
answers

Get the last word of a String and put it at the beginning with jQuery

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...
asked by 03.11.2017 / 07:09
2
answers

jQuery Error: Uncaught RangeError: Maximum call stack size exceeded [closed]

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...
asked by 28.09.2016 / 14:09
3
answers

Conflict between jquery and min-jquery [closed]

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...
asked by 24.10.2016 / 17:07
2
answers

When using jQuery append it displays the text [object Object] and does not insert the element

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 =...
asked by 20.02.2017 / 14:50
3
answers

Enable / Disable input per id

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...
asked by 10.12.2015 / 16:49
2
answers

How to remove the "date" we defined in jQuery?

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...
asked by 19.10.2015 / 16:13
4
answers

Doubt in jQuery variable creation

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...
asked by 19.10.2015 / 00:51