Questions tagged as 'jquery'

1
answer

Load dynamic data into javascript

I'm trying to load dynamic data from DB, but it does not appear. $(function () { var divContent = $('#formularioVeiculo'); var botaoAdicionar = $('a[data-id="1"]'); var i = 1; //Ao clicar em adicionar ele cria uma linha com no...
asked by 12.05.2015 / 23:37
1
answer

How to replace an attribute of an HTML snippet that is as a string?

I have a variable that contains several HTML codes. This variable is already mounted, what I have to do is replace an attribute that is in a (tabindex) child div. Is there any function where I can change this variable, without having to g...
asked by 13.05.2015 / 02:31
1
answer

How to get JQuery value and pass to PHP [duplicate]

I know the question may have already been asked, but in no case has it solved the problem I have, I need to get the value of a JQuery variable and pass it to one in PHP, the variable in JQuery is being created like this: // Gerando números p...
asked by 12.05.2015 / 18:15
1
answer

How to remove 20 pixels of an element with Jquery

I need to re-calculate the size of an INPUT TEXT element because it will dynamically add a 20-pixel button next to it. I tried this and it did not work $(this).width(function () { $(this).width() - 20 });     
asked by 27.04.2015 / 22:00
1
answer

Detect ":" and show suggestions with jQuery

I have a textarea and I would like to know how to detect the : character and from there, show suggestions listed in an array with all the possibilities of "auto complete" and filter the results ... Here is an example: I a...
asked by 25.04.2015 / 01:15
1
answer

Using the value of a datapicker in another

I'm trying to use this DataPicker to pick the day he selects, add another 7 days and from these days, return only on Saturdays. Follow the code.     Updated code, now it only needs to add up to 7 days. $("#data-inicio").datepicker({...
asked by 28.04.2015 / 04:04
2
answers

Centralize dynamically created div on top of another div

How to center the div #windows that is created dynamically with width / height varying, on the div #main-content being that it needs to stay the way it is, not creating it within the div #main-content <div id="page-wrap...
asked by 03.08.2015 / 14:12
1
answer

Recover Value Chosen Jquery

I have two Select Chosen in my form, what I'm doing is: Thatis,whentypingifIdonotfindanythingrelated,Ihavethe'Incuiritem'link,whichopensamodal,untileverythingworks.TheproblemisthatIneedtotransferthetypedtexttoaninputthatisinthemodal,Icouldno...
asked by 31.07.2015 / 17:52
2
answers

Reduce image and center

Personal I have an image that I bring from the database and put it in an IMG tag in the size of 960px by 480px. I need to resize it to 470x160. I need it to be resized by length, and the height left over is trimmed, but out of the center. See th...
asked by 29.03.2015 / 23:24
1
answer

Drag div into another

I wanted to do a volume controller, I already did css, php, html, but js and jquery are missing to finish. I wanted the ball to drag inside the .controlar CSS: .bola { width: 10px; height: 10px; } .controlar { width: 100px; height: 10px; }...
asked by 23.07.2015 / 23:43