Questions tagged as 'jquery'

2
answers

Pass video url into Modal - Jquery [duplicate]

I'm passing the url into the embed ( #meuid ) like this: <script> $('#treinamentos').on('show.bs.modal', function (event) { var button = $(event.relatedTarget) var nome = button.data('nome') var video = but...
asked by 08.01.2016 / 13:43
2
answers

How to submit a form by pressing "enter"?

How do I make a click type for a input without using a button? For example, I'm going to click on input enter what I want to search for and when you press ENTER the form will be sent. How do I do this with jQuery? <input t...
asked by 19.12.2015 / 02:22
1
answer

Call PHP function in jQuery

I'm starting my PHP studies and I have to do a registration form, however, it's very bad to do data validation via PHP, so I'm using jQuery for this. However, I need to call the PHP function inside jQuery to just get data that has already bee...
asked by 25.09.2015 / 22:10
2
answers

Return image value

I have this html code: <label> <img class="jogo" value="lol" src="../cdn/img/jogos/lol.png"> <img class="jogo" value="csgo" src="../cdn/img/jogos/csgo.png"> </label> <br><div class="atual"> </di...
asked by 03.09.2015 / 22:13
1
answer

JQuery is not working [closed]

I'm having trouble making jquery work. Here is head of my HTML: <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no"> <script src="https://ajax.googleapis.com/ajax/libs/...
asked by 04.09.2015 / 18:27
1
answer

Help with jquery Uncaught TypeError: $ is not a function

I'm having a problem with a filter selector, when I choose a city to filter information about it, the browser console shows me the error below. I can not tell which version of Jquery is being used on the site, I'm dropping parachute in the world...
asked by 05.05.2017 / 19:20
1
answer

Leave a softer effect

How do I make this effect smoother? $j(window).scroll(function () { console.log($j(document).scrollTop()); if ($j(document).scrollTop() >= 300) { $j('.logo img').attr('src', 'http://i.imgur.com/499DSOf.png').addClass('logozi...
asked by 28.04.2017 / 15:55
3
answers

Problem to attack child and doubt in using this

I'm having trouble understanding the use of this. I have the following structure: <div id="a" class="clsa"> bbb </div> <div id="b" class="clsb"> <span id="bb" clsbb> Conteudo bb </span> </div>...
asked by 04.05.2017 / 08:35
4
answers

When filling in the Data field, execute a jQuery action

I have a data field and need that when I finish filling the date ... Execute a function to list a SELECT form. <input id="dp1" class="input-small" onkeyup="mascaraData(this);" name="data" type="date" placeholder="DD/MM/YYYY" data-da...
asked by 31.08.2015 / 20:51
2
answers

Display multiple input images with Jquery

I'd like to know how I can display the images that were selected in my input multiple. I already tried to find something of the type but only found how to get the name, size, type. Ob     
asked by 08.03.2017 / 14:17