Questions tagged as 'jquery'

1
answer

Check if a value is inside an array

I would like to do the following: The user enters his zip code and a input field and the value that he inserts into this field wanted to compare if he is in the zip code range (01000 to 19999) p> My questions: 1st - In case I would...
asked by 23.12.2016 / 16:35
1
answer

Problems with XMLHttpRequest in Chrome

After this update of Google Chrome for version 53, I am facing problems in the Ajax (jQuery), $ .http (AngularJS) and XMLHttpRequest (Javascript) calls with the following message: XMLHttpRequest cannot load *. Response to preflight request doe...
asked by 14.09.2016 / 21:46
2
answers

Formatting date and time with Javascript? [duplicate]

I'm consuming data from a API and would like to know how to pass the following date and time value to the Brazilian standard. The format returned is this: 2017-01-05T14:35:17.437 but I'd like it to be displayed 05-01-2017    ...
asked by 05.01.2017 / 20:12
2
answers

Adding date tags to the button with jquery

I need to add tags data to my button when I hover over it, I already get the mouse hover move now I need to add the tags , which are: data-trigger="hover" data-toggle="popover" data-placement="bottom" data-content...
asked by 11.01.2017 / 00:18
2
answers

Delete log from the Modal Bootstrap window

I'm trying to delete a record from the Bootstrap modal window, but it's not working. Look how I did it: When you click the delete button for a particular record <a class="btn btn-primary delete" href="#" data-href="#" data-target="#co...
asked by 29.06.2016 / 18:46
1
answer

Changes element color when clicked

I have this code, it shows 1 video when clicking on a table. Is it possible to change the color of the element that was clicked in the same way as with links? but with CSS? Example: video 1 red color, after clicking this option turn gray....
asked by 22.11.2016 / 16:36
1
answer

Load content from one div into another div

I have the following problem. How do I load content from a div to another div empty that is in the same HTML file? Example: <div class="conteudo"> <label> Teste 1 </label> <label> Teste 1 </lab...
asked by 19.08.2016 / 16:23
1
answer

Limit inputs dynamically

I'm a little new to jQuery and would like to know how I can restrict the size of input dynamically inserted. An example: In the code below, the user can insert as many% s as you want, but I wanted to limit these inserts. Is it possi...
asked by 23.08.2016 / 22:16
1
answer

Simple question about for loop

I have 4 images: one image over the other within div . It is over each other because it is in absolute position. I would like to make a simple slideshow , just to learn its basic operation inside a loop . What's wrong with the cod...
asked by 07.06.2016 / 00:37
1
answer

Setar click for elements not yet existing [duplicate]

$(".item").on('click',function(){ alert($(this).text()); }); count=0; $("#new").on('click',function(){ count++; $li = $("<li class='item'>LI "+count+"</li>"); $("ul").find('.item').last().after($li); }); &...
asked by 15.03.2016 / 14:29