Questions tagged as 'jquery'

2
answers

Adding more fields in form dynamically in Jquery [duplicate]

I'm creating a form, in which the user will add more fields dynamically. I took the function of this tutorial: link The problem is when adding, I want each field to come with a different "Name". type: "Text1", "Text2", "Text3" ... how do...
asked by 14.01.2016 / 21:25
1
answer

Failed to call function with JavaScript parameter

I have the following function: function show(msg, el){ if(msg.alertType == 0){ resetForm(el); setTimeout(function(){ $('#show-toast').removeClass('toast-show'); $('#show-toast .td.result .msg').rem...
asked by 03.03.2017 / 14:56
2
answers

store automatic pagination

This page is working perfectly, there is only one thing, when the person dece to the end it brings the last record of the bank everything right, there it is showing the message of Carregando... even having nothing else to display, like Co...
asked by 03.07.2018 / 20:40
2
answers

How to access a jquery without id?

I always access a jquery using the command: $('#id_1') , but always in an html body that has id . How do I access an html body that does not have id , using the data-uid attribute in my case below? <img data-uid="_b...
asked by 24.08.2018 / 20:08
1
answer

How to activate autofocus with jquery on a div?

How to activate autofocus with jquery on a div? I want to do an autofocus in an input once the user does such action ...     
asked by 24.10.2017 / 21:28
3
answers

Insert PHP in Javascript [closed]

Hello I need to get the results of a SELECT in PHP and display in a ALERT within a function in JAVASCRIPT , where running JAVASCRIPT runs PHP and WHILE . How can I do ? I'm confused about the key...
asked by 02.10.2017 / 15:45
3
answers

Show input value when clicking the [duplicate]

How do I show value I typed in input after clicking the button? mine always returns empty: var x = document.getElementById("usuario").value; var usuario = $("#usuario").value; //document.getElementById("user").value; // $("#u...
asked by 04.10.2018 / 16:25
1
answer

Share LocalStorage with browsers

Is there any way to share localstorage with multiple browsers? For example, I set localStorage.setItem("lang", "pt"); in Chrome, however, I would like this value to be available in Firefox and other browsers that support LocalStorage....
asked by 01.09.2017 / 15:41
4
answers

Click on the div open option

I have a selectClick div and would like it when I clicked on it, open an option below. The way I'm doing is not working. $('li div.selectClick').click(function() { $(".div-select select").slideDown('slow'); }) .div-select { width:21...
asked by 15.09.2017 / 14:59
2
answers

Change the background of the site daily automatically

We are finalizing a system that in the login part has a background with a certain image, but we are trying to make every day a new image appears, the same as in Bing. Can you do this in javascript or jquery? The change of image would be daily an...
asked by 12.09.2017 / 15:50