Questions tagged as 'jquery'

1
answer

Sum of days on a date

I'm having trouble performing a calculation for a form. I wanted to be able to add days to a date selected by the user. I saw that there are several examples in the forum but with specified days (today for the date and the choice of days alre...
asked by 02.08.2017 / 18:04
2
answers

jquery n.fn.init (0) in test production n.fn.init (1)

I have a form that creates the input fields dynamically (ASP.NET MVC C #), when the user types in a field, I want to execute an ajax to populate the other fields. When I created a test.html, with the fields fixed and not being created dynamic...
asked by 07.08.2017 / 15:36
2
answers

Increase width in% and not in px

How do I increase widht with%? It put this code I made, it increases, but it's in px, and I wanted it to increase in percentage. var progressBar = $(".progress-bar"); setInterval(addProgress, 1000); function addProgress() { var width = p...
asked by 26.06.2017 / 18:44
2
answers

How to get the contents of the dynamic divs?

I have the following code, which is added dynamically: var m = 0; $$("#add_medicamento").click(function(){ m++; var medicamento = $$("#select_medicamento").val(); var qnt = $$("#quantidade").val(); $$("#lista_medicamentos").append('<li clas...
asked by 30.06.2017 / 22:06
1
answer

How to make this variable global?

I'm using this script to check for support for webp images but I'm having trouble setting the type, here's the code that checks: hasWebP = (function() { var images = { basic: "data:image/webp;base64,UklGRjIAAABXRUJQVlA4ICYAA...
asked by 07.04.2017 / 18:08
1
answer

How to rotate a div?

Well, I have a div that contains secondary divs inside it, what I want is to make an effect, which rotates the inner divs, ie from right to left, killing the position of the main div. In other words, I wanted to move the inner divs by clickin...
asked by 30.01.2017 / 01:59
1
answer

How do I "update" a function?

Well, I have the following code: <head> <style> body,html,div { margin:0; padding:0; width:1050px; height:69px; position:relative; } #anim { background:url('https://csgopolygon.com/img/cases.png?v=222') 0 0; backgrou...
asked by 29.01.2017 / 17:01
2
answers

Have PHP read the server folders [duplicate]

Colleagues. I have now taken a project here at work, where back in the beginning this project was developed. It works as follows: Some folders with jpg have been created on the page index.php, where it directs to the respective links. Bu...
asked by 17.01.2017 / 18:20
1
answer

allowing only letters in the input with jquery Mask

Is it possible to only allow input letters with the jquery Mask? I'm using this plugin: JQuery Mask Plugin     
asked by 23.01.2017 / 17:06
2
answers

Jquery load function does not work [closed]

Even following the official Jquery documentation, my script does not work. Something from day to day. I do not know if I changed something without wanting to. Follow the code below <!doctype html> <html lang="en"> <head>...
asked by 15.12.2016 / 21:08