Questions tagged as 'jquery'

2
answers

Get first value before comma

Hello, I'm having trouble storing the value of the day before the comma: <span id="organizerContainer-date">Novembro 3, 2018</span> I would like to store this value to do some things. If anyone has done this before could you let...
asked by 03.11.2017 / 21:20
1
answer

How to use a function of an object as an argument of another function

This is my function that receives an object and uses the attributes of type " function ". FrameWork.prototype.loop = function (objectLoop) { objectLoop.draw(); objectLoop.update(); window.requestAnimationFrame(this.loop.bind(this)...
asked by 02.11.2017 / 20:40
2
answers

submit a form when selecting a select option, without doing page reload

I need to submit the data of a form (they are hidden) when selecting the option in select, this with ajax without reload of the page. I have the following code, which works fine, but does not send (POST) form data that is hidden: <form c...
asked by 08.11.2017 / 13:23
2
answers

Two events in function - jQuery

I have a function in jQuery which I do through the .on('change') event, but I also needed that same function to happen on page load, but I do not know how to do this, call two events in a function. Function code in jQuery...
asked by 03.11.2017 / 18:04
4
answers

.click function does not work on buttons that were generated dynamically by the .html function? [duplicate]

I have the following code: var nReqAJAX = nReqAR $.ajax({ type: "POST", url: "../controller/ajax.selectItemRequisicaoPesquisar.php", data: {'numeroRequisicao': nReqAJAX}, dataType: "JSON", success: function(res) {...
asked by 19.10.2017 / 16:53
1
answer

Uncaught TypeError when using the Jquery Mask Plugin

I received the "Uncaught TypeError" error when using the jQuery "mask" function Mask Plugin. Herearemyincludesinthefileeditar_usuario.php.<scripttype="text/javascript" src="<?php echo $site."js/chama_ajax.js" ?>"></script>...
asked by 12.11.2017 / 00:22
1
answer

Keyup () is not working?

I have a function that is supposed to show how many characters are missing to reach the maximum, however, it only counts after the first key is "clicked". Here's my code $("#nome_event").keyup(function(){ var count = $(this).length; var...
asked by 14.11.2017 / 17:31
2
answers

I can not get the value of a child element

I am filling a table as follows: $.ajax({ method: "GET", url: "https://api.github.com/search/users", data: { q: search, sort: "repositories" } }) .done(function( msg ) { jQuery.each(msg.items, function(i, users){ getRep...
asked by 10.11.2017 / 01:24
1
answer

How to apply hover effect (JQuery) to a specific group of classes?

I'm creating a web page that would look something like a store. The idea of this code is that, when hovering in the product.device, two other divs appear (one on the right and one on the bottom), and this effect needs to be done in JQuery / Java...
asked by 13.11.2017 / 01:48
1
answer

How to add JQuery to Electron? [duplicate]

I'm a web developer, I've tried methodologies in an English post, but ... none works, I want to add JQuery to electon . I've used this without window.$ does not work. <script src='https://code.jquery.com/jquery-3.2.1.min.js'&g...
asked by 01.12.2017 / 05:13