Questions tagged as 'jquery'

4
answers

Hide or display HTML table row with Jquery

I have a SELECT like this: <select id="filtro-uf" name="filtro-uf" class="form-control"> <option value=" ">Selecione</option> <option value='AC'>Acre (AC)</option> <option value='AL'>Alagoas (AL)...
asked by 13.04.2018 / 17:45
2
answers

indexOf is not recognized within the for

Hello, I am trying to execute this code so that it captures all the links on a page, everything works ok, the problem is that I want to find links that contain a certain word using indexOf error in log .. Uncaught TypeError: str.IndexOf is n...
asked by 13.04.2018 / 19:53
3
answers

Hide text between braces in javascript

How can I hide text that is enclosed in braces in my div Ex: <div> Hello {World} </div>     
asked by 25.06.2018 / 21:25
1
answer

Error doing Javascript sum

I have a calculation script that I adapted from another page. There, all right, but in that, even conferring the same ids and the like, does not work. I took the essentials of the screen, to demonstrate what I have done so far. $(".real")....
asked by 28.02.2018 / 14:22
1
answer

JQuery code presents different result depending on browser

I'm using a <input type="datetime-local"> but unfortunately does not work in Mozilla. So I thought I'd implement something to mask this problem, but for that I need to run a specific code for Mozilla. My project uses Jquer...
asked by 04.05.2018 / 16:38
5
answers

Event when you press the button

Would there be any way to detect the tap at the push of a button? The code works fine on the desktop , but when I test in mobile does not fire. Using JqueryMobile is not an option. var timeout = 0; $('button').mousedown(function...
asked by 04.05.2018 / 03:04
2
answers

Grouping and summing return data json with jquery

I have this Json that returns from the database, I need to consolidate data that is the same but I have no idea how to do it in jquery or php. If anyone has any suggestions Thanks! { "data":[ { "nome_pesquisa":"teste"...
asked by 14.02.2018 / 17:52
1
answer

How to make the reload page take 10 seconds

I have this code here, but it is always reloading the page. script type="text/javascript"> function autoRefreshPage() { window.location = window.location.href; setInterval('autoRefreshPage()', 10000); } I wanted it to take 10...
asked by 14.03.2018 / 18:45
2
answers

How to redirect to a page if url does not contain a word?

I wish that if there was no string in the url, it would redirect to a page. This is what I tried $(document).ready(function () { if(!window.location.href.indexOf("www") > -1) { var link = window.location.href; var ver =...
asked by 15.02.2018 / 21:29
1
answer

The change () is not acting as expected, why?

I'm using CHANGE () to capture a STRING ID (VALUE on a FORM) and using that ID to hide or show the selected DIV. In the first pass in the selection box (SELECT OPTION) the expected occurs, but when I go back and select another item, the previous...
asked by 20.04.2018 / 00:24