Questions tagged as 'jquery'

3
answers

Exchanging TAGs with JavaScript

Is there any way in JS / JQuery to change a tag in HTML? For example, I have one: <div></div> And I want, let's assume I want it to turn a span: <span></span> In short, change: <div></div> By...
asked by 22.05.2017 / 14:53
2
answers

TypeError: $ (...) .error is not a function

I have an error code in the latest version of jQuery v3.1.1 In version 1 there is no error. Here is the code: //IMAGE ERROR $('img').error(function () { var s, w, h; s = $(this).attr('src'); w = s.split('&')[1].replace('w=', ''...
asked by 14.12.2016 / 12:09
2
answers

Problem with a JavaScript function

I have a problem here and I do not know how to solve, in theory, my function below 768px was to add the class .navbar-inverse to the tag nav , and above 768px is to remove it case exists, but nothing happens. Edit:...
asked by 14.04.2015 / 15:47
2
answers

How to show elements in sequence?

I'm trying to show the elements in sequence: <p class="desc">1)INFORMACAO1?</p> <p class="desc">2) INFORMACAO2</p> <p class="desc">3)INFORMACAO3</p> <p class="desc">4) INFORMACAO4</p> <p class...
asked by 27.01.2017 / 18:44
3
answers

Pivot table with row and column addition

Is it possible to create a table with the addition of rows and columns? According to the image, the situation is: - Start a table with 3 columns and a row; - Considering that the first line and the first column would have to be editable (being p...
asked by 14.06.2017 / 22:38
0
answers

Popup with a magnifying glass [closed]

I have a page with a combo that allows multiple selections of your items. If the user selects only one item, closing the combo displays text about the selected item. if the user selects multiple items, when closing the combo the displayed tex...
asked by 16.12.2014 / 12:38
2
answers

How to use a property of a tag using JQuery

I have a dynamically populated component <select id="selectTeste"> <option value='1' exigeIdade='true'>item 1</option> <option value='2' exigeIdade='true'>item 2</option> <option value='3' exigeIdad...
asked by 12.07.2017 / 21:46
3
answers

How to insert row at the top of a table using JS?

I use the following code to insert a row into a table: var linha = "<tr>"; linha += '<td class="cnes">' + cnes + '</td>'; linha += '<td class="cbo">' + cbo + '</td>'; linha += '<td class="profissional">' + p...
asked by 17.07.2017 / 20:09
3
answers

.is () jQuery - how does it work?

As the function .is () works in jQuery, I've seen it being used in a code, in the code it has a $ lastClicked variable, declared, then a comparison is made (! $ (this) .is ($ lastClicked) ), only I did not understand how .is () works, and what i...
asked by 01.08.2018 / 18:08
2
answers

Is it possible to concatenate a jQuery selector with a variable?

I have the following code inside a javascript function that is inside a .php page: if (indice_da_aba == -1) { window.alert('não existe ABAS AINDA'); } else if (indice_da_aba == 0) { $('a[href="#tab_00"]').tab('show')...
asked by 30.10.2017 / 20:34