Questions tagged as 'jquery'

2
answers

Send form only if any input is changed

I have a form that opens in a modal bootstrap that is populated dynamically with jquery, this form is enabled for editing, and in this modal has a "Save changes" button, which I want to perform an action only if any field form is changed from th...
asked by 26.06.2017 / 07:49
1
answer

Bug with scrollbar in plugin select nice

Well I'm customizing the nice select plugin, however I'm having a bug where the scroll bar on the page gets huge, and the select is closed. How to make it appear only when the select is opened? (function($) { $.fn.niceSelect = function(...
asked by 24.06.2017 / 19:58
1
answer

Error inserting data into database with Jquery and Ajax

This code snippet always returns ERROR: 200. It is inserting the data in the database normally, but it returns error in the interface. $("#registrar").click(function(){ $.ajax({ url : "registra.php", method:...
asked by 21.06.2017 / 04:45
1
answer

Variable within GET Ajax Request

Good afternoon, I need a help, I have this request get from ajax that sends to the web service, and I need to put this variable id, in the url, because inside the webservice I get this variable and I treat the return, correct ? I do not know how...
asked by 21.06.2017 / 19:56
2
answers

Show and hide caption with jquery

I'm trying to show and hide a div if the slide div has the active class. The problem is that the div is always displayed, even when the bootstrap slide changes and the active class is removed. <div id="carousel-example-generic" class="carou...
asked by 21.06.2017 / 16:22
1
answer

How to trigger button's Onclick event with jquery

I need to push the button when clicked. I made it in jquery in generic form passing the parameter of certain button to execute the script for it. <button id="buttonprofissional" type="button" class="btn btn-warning" value="profissional">...
asked by 24.07.2017 / 16:05
1
answer

Multiple filters on a json object?

Hello. I have 10 filters for a single json object: var filtro1 = function(value, selecionado){ var data = JSON.parse(JSON.stringify(json.aPesquisa)); var result = data.filter(function(pesquisa){ ... }); return result...
asked by 24.07.2017 / 23:53
1
answer

"include" in javascript or something similar to reduce code size

I have a dashboard where when some value or information is updated, the other values are automatically recalculated without refresh. An example is that when adding an expense in the table, it needs to recalculate all expenses, update the DB,...
asked by 27.06.2017 / 23:37
1
answer

Switchery with tooltips (bootstrap), how to do?

How to make Switchery show bootstrap tooltip in itself? This example does not work: <input data-toggle="tooltip" title="Hooray!" type="checkbox" class="js-switch" /> var clickButton = document.querySelector('.js-switch'); clickBut...
asked by 20.06.2017 / 22:55
1
answer

Google maps warning: getCurrentPosition () and watchPosition () no longer work on insecure origins

I'm using laravel with a virtualhost and I need to make the map work on localhost, but I already have the google key and even then, without putting the restrictions on the key, the message still appears. How do I make Map work in the localhost e...
asked by 19.07.2017 / 16:16