Questions tagged as 'jquery'

2
answers

Are there "problems" with jQuery's small ones?

For example, some parts of a website, I can not fully tinker with HTML, put the platform locked for "security" and do not let it modify, so I use jQuery / JavaScript to do the modification I need. Does this interfere with website performance? A...
asked by 29.05.2017 / 15:16
2
answers

jQuery "contains word" selector does not work as expected

I'm trying to use jQuery's contains word selector to hide / show some elements dynamically on my page, however the selector is not working as expected. I'm using the 3.1.1 version of jQuery. Notice by% w_that the code considers...
asked by 09.11.2018 / 20:26
2
answers

Jquery - How to pass a variable to a jquery selector?

Hello, I'm new here (as well as very new in knowledge of js and jquery). I'm trying to pass the result of a variable to a jquery selector. More specifically I'm trying to pass (through the click event) the name of an id (among several existing,...
asked by 09.10.2016 / 00:26
3
answers

How to use a cookie as Javascript Array?

Doubt: I would like to know a way to use Cookie , as if it were a Array . Problem: I can not figure out how to do this. Example: Suppose I have a Array called Foo which would be as follows: var Foo = ["qua...
asked by 03.02.2014 / 14:34
1
answer

When closing modal, clear search result done in the bank

I need to close and limpar the contents of a modal. When I open it I have a search field where I perform a search in my bd , and when I click on the enviar button I close it by passing some parameters. But when calling the mo...
asked by 30.11.2016 / 17:25
2
answers

Hide / Show when checkbox is checked or unchecked

How can I check if a checkbox field is checked, and according to its state, hide or show another input field, eg: <label> <input type="checkbox" name="check" /> Clique aqui </label> <input type="optional" n...
asked by 08.12.2016 / 03:16
1
answer

Divs with alternating colors [duplicate]

I have an ajax that shows the results to me in a JSON, I need the colors of <div> to alternate: in the first gray color, the second white, the third gray, the fourth white, and so on. How do I do that? I can put class 1 in the eve...
asked by 02.12.2016 / 17:10
2
answers

Wait or check append

I have a div that should make a append of some elements and then do a scroll by the end of it. The problem is that scroll runs before append is finalized. The (generic) code looks like this: $("div").append(output); $("div...
asked by 06.04.2017 / 15:28
2
answers

Request Form AJAX is updating page

I'm making a simple form to be submitted with jQuery Ajax. Data is being sent, but you are updating the normal page. I would like to know what I am doing wrong, because in submitting the form the page is being updated, but I would like this n...
asked by 13.12.2016 / 18:34
1
answer

css is not a function

I have an array of items that I want to change the css in scroll of my Document, when I give console.log() , the items are there, but in the loop to change their style, it gives me the message:    Uncaught TypeError: items...
asked by 06.04.2017 / 17:31