Questions tagged as 'jquery'

2
answers

Call function out of scope in javascript

Follow the code to explain my error: class Cliente { showName(name) { alert(name) } getName(){ $.get(minha-url) .done(function(data) { this.showName(data.name) }) } } The getName method returns an error because it does not fi...
asked by 03.01.2017 / 19:23
2
answers

event with jquery

In Html we have: <div id="t1" > </div> <div id="t2" > </div> <div id="t3" > </div> I'm not afraid: var aux="#t"; var count=0; $(document).ready(function(){ $("#t1").click(function(){...
asked by 17.11.2016 / 02:37
4
answers

How to change the date order of an implode coming from a jquery datepicker

I have the following $ _get: if(!empty($_GET) && $_SERVER['REQUEST_METHOD'] == 'GET'){ $v_ocorrencia = $_GET['ocorrencia']; $datainicio = $_GET['datainicio']; $datafinal = $_GET['datafinal']; echo 'valor recebido: '. $v_o...
asked by 01.11.2016 / 20:07
3
answers

get the value of a td when clicking on a checkbox of the same line tr jquery

How do I get a value of a <td> by clicking a checkbox that is in the same <tr> in jquery Follow my code: HTML <table style="display:none;" id="tableTime"> <tr> <td...
asked by 19.01.2016 / 05:38
2
answers

Problem to get input value with javascript

I'm getting the value of input through JS and sending via GET to another page. The problem is that when I type space inside input , I can not get what I wrote after the space. If I type for example: Ana Maria JS just tak...
asked by 09.03.2016 / 20:00
2
answers

addClass () is adding class to a href="" instead of img src=""

Well, I need a link in the image and when I did, there is an error in my fade effect made with Jquery. I believe the error is in the misuse of next () . This fade will only work if the active class is added to img and not to the link! But b...
asked by 08.07.2015 / 21:39
3
answers

Search for HTML style LIKE% ..%

How can I search in HTMLS style LIKE %..% type I own these divs with these styles <div class="texto_de_reportagem">Olá meu nome é fulana de tal e nasci assim vou morrer assim Fulaninhanhá..</div> <div class="texto_de_rep...
asked by 02.07.2015 / 03:07
2
answers

How to check if a checkbox is checked with jquery? [duplicate]

Hello, I'm trying to do an operation on JS if a checkbox is checked, but I'm not getting success. Here is the code: $('#btn-proximo').click(function(e){ if($('#in_acesso').is('checked')){ $('#div_valida :input').ea...
asked by 05.10.2018 / 17:13
2
answers

Count words in Array

How do I count the number of words that appeared within an array. Example: ['thiago','carlos','pereira','thiago'] "thiago" appeared 2 times, "carlos" 1 and "pereira" 1. I want a logic that does this dynamically regardless of the names....
asked by 28.02.2018 / 19:02
4
answers

Validating Date of birth

Hello, I am trying to validate birthdate less than 15 years using the following rule: 1- If the user enters the date of birth, check if the day, month and year that the user entered, is less than 15 years, if so, the button will be hidden....
asked by 21.09.2015 / 16:31