Questions tagged as 'jquery'

0
answers

Update DIV with popover attribute

I have a function where I get charged every 10s. When checking that there is a new message updates the field informing the amount of messages. smg(); function smg() { setTimeout(smg, 10000); // 10 seg $.getJSON(...
asked by 18.08.2017 / 21:26
1
answer

Form HTML + Ajax with Jquery and PHP

I have a form that has a date field that is native to HTML5, and I need to call a Php page that will load my page in the OnChange event of that date field. Example of my html code: <form id="formulario" method="GET"> <input type...
asked by 19.08.2017 / 14:21
0
answers

Generate Random Number without repeating Javascript [duplicate]

So, I want to generate this protocol, with random numbers and no repetition. It is functional, meaning the code does not repeat. However, when clicking generate protocol, on the click, it was to generate, until you find a random number t...
asked by 14.08.2017 / 19:41
0
answers

Follow UTM to the next page!

Hello I have a code that when the button is clicked the URL parameter of the current page goes to the next page ... This would be the current URL: google.com?utm_source=1 When the button is clicked it should follow and look something...
asked by 15.08.2017 / 15:25
0
answers

Error initializing DataTable with jquery

Hello, I have a DataTable that will be powered by JavaScript Source (data source) when I open the screen, I want it to start "empty" with no data. For some reason, it already starts automatically when loading jquery.datatable.js, and I need t...
asked by 14.08.2017 / 20:05
1
answer

Jquery Chosen Plugin does not filter search on PHP site

I'm using the plugin Jquery chosen does not perform filtering in php system. Code to scan bank and get list of data: <div class="grupo"> <!-- class="borda select2_single form-control comboauto" --> <select name="id_projet...
asked by 14.08.2017 / 19:40
1
answer

jQuery returning r.fn.init ()] strange error

So I was doing a school project and I came across a pretty strange error in jQuery. I basically repeated the same programming step and from the third time the code does not work. I tried to identify what was returned on the console and I g...
asked by 08.09.2017 / 18:38
0
answers

Problems displaying data with Ajax

Hello. I'm having a hard time getting the user to click on a different button on my form to run an Ajax. If I put Ajax out of my $('button') it displays on the page perfectly, listing all the stores worked perfectly as I put it in the...
asked by 08.09.2017 / 17:17
1
answer

how to set a background-image in the src of an img tag using jquery?

I'm creating a modal to display a gallery and the idea is that, when clicked on the images, the modal searches the background-image of each <img> and applies to the src. The modal works, but the image does not appear because the src...
asked by 14.08.2017 / 02:24
1
answer

Verify checkbox only when checked

I'm doing a check from a check box to see if it has a type="radio" selected. The problem is that the check is performing the calculation even when I uncheck the check box. I took the following test to see what was happening. console.log($("inp...
asked by 14.08.2017 / 16:36