Questions tagged as 'jquery'

1
answer

How to make a function run after another? JS (Jquery)

I have the following functions: Gets server data by ajax and saves it to an Array of objects: function carregaPesquisaTabela(){ controlLoading(); $.ajax({ url: "header.php", type: "POST", dataType:"json", data: { 'procuraPes...
asked by 03.11.2018 / 00:25
1
answer

How to put mask in the form input field that is in a modal window of bootstrap

People, I'm using the jquery mask on head <script type="text/javascript"> $( document ).ready(function() { $("#celular1").mask("(00) 00000-0000"); }); }); </script> I'm co...
asked by 22.12.2018 / 01:27
2
answers

How do I assign target="_ blank" to all external links after ajax finishes loading?

Hello, I have a blog in wordpress where I need all external links to be opened in a new tab when clicking. But these links are loaded by ajax and the function I have is done before ajax finishes loading everything. $(function() { $("a[href^='h...
asked by 23.12.2018 / 14:22
0
answers

Menu with anchor href, does not work when it is on the same page

I have menu that stays in an include and if I am in the home and I click on one of the options goes right to the desired page, only that when I am on the page itself only works the first link which is what I am the rest not . Do you have to put...
asked by 20.09.2018 / 18:57
0
answers

pt-BR in datePicker does not work in AdminLTE 2

Hello, I'm developing a panel and I need datepicker in Portuguese, I already tried to modify the js file itself but the dates disappeared. $('#datepicker').datepicker({ autoclose: true, language:'pt-BR', format: {...
asked by 20.09.2018 / 21:29
0
answers

I need to create a message history that updates in real time [closed]

I created a chat, where 2 people can chat. besides the option to write a new message, the chat presents the user with a message history that shows the messages exchanged between him and the other user. as soon as a user writes a new message, it...
asked by 25.12.2018 / 22:40
1
answer

How to run a hide with ajax

The difficulty in question is how to recover the Id or the class of TH / TD being that the code is in a variable within a FOR I will try to explain with some images. After a search in the database, and I can list all the people in my family....
asked by 14.11.2018 / 20:43
1
answer

Hide and open div under certain conditions

I'm having trouble opening and closing a particular search bar. I need to open a div while focus is in the field and take it out while it does not, but when you click on the div it is open it can not be removed or closed. I tr...
asked by 11.09.2018 / 15:03
0
answers

Javascript copying content from another DIV that is not for copying

Can anyone help me please? The script I did is to transform the curriculum matrix that is in an ul into separate columns, but it is catching the curriculum matrix of other courses. I remember how to separate this by selector, but I can not un...
asked by 12.09.2018 / 15:43
1
answer

Function looping for no reason

I have a script to increment a value in a input of multiplication when + or - is pressed. It is working as expected since there is no focus in input of multiplication. Every focus in input script get...
asked by 06.09.2018 / 14:48