Questions tagged as 'jquery'

2
answers

How to leave option checked when div

There is a site where the client should choose cor and tamanho for a given product, what I have today are divs that show the colors and sizes but I am not able to leave the marcada option when it is selected , such as radios...
asked by 16.08.2018 / 16:20
1
answer

How to show the seconds running in the date function

Good morning, how do I show the seconds running in the function below? can be some function in jQuery to animate php. date_default_timezone_set('America/sao_paulo'); //CRIA UMA VARIAVEL E ARMAZENA A HORA ATUAL DO FUSO-HORÀRIO DEFINIDO (BRASÍLI...
asked by 16.07.2018 / 16:37
2
answers

Submit being called twice

I have a form where I need to intercept the submit event, cancel it and via Ajax, make the necessary request. However, even using preventDefault(); and return false; submit is running twice. $("#frmTeste").on('s...
asked by 06.11.2018 / 05:20
2
answers

How do I create an attribute for an HTML tag? Something similar to the existing "required"

I have a page with several <input> and some of them are required, these <input> are not in a <form> tag, so I think required can not work in this situation. I have done the verification in the same hand:...
asked by 12.08.2018 / 22:41
1
answer

JQuery mask that accepts values up to 10.0

How would I make a text field receive values up to 10.0 and have a mask like this: 1.0, 2.3, 10.0, that is, when the value is less than the 10.0 limit, the decimal has only 1 number. Is this possible with JQuery? I have a script that adds all th...
asked by 13.08.2018 / 20:55
2
answers

Open select open value with javascript

Good morning, I have a request that I can not find anything like this. When you click on the select, it sends a request to the javascript and fills in the data, and when filling in, I need that data to appear. To fill, fine, it works fine,...
asked by 13.08.2018 / 14:06
1
answer

Error accessing cori api

Personal I'm trying to access a wikipedia service with JQ, but this in returning cors error, could someone help me with a code to access this service correctly. Url: link error Blocked cross-origin request: The Same Origin Policy prev...
asked by 29.06.2018 / 18:34
1
answer

Angular Scripts

Hello, I have an angular application where I am using jquery scripts to implement a datapiker and a timepiker, those presented below: Ihaveaseparatescriptforinitializingthem,whichisshownbelow: jQuery(document).ready(function () {...
asked by 05.06.2018 / 07:35
3
answers

how to get the opening and closing times and save in two variables with javascript?

How to get the start and end times and save in two variables with javascript? var hora1 = '9h - 22h' var hora2 = '12h - 21h' var1 = 9 var2 = 22 var3 = 12 var4 = 21 using substring I could not because they values vary dy...
asked by 08.06.2018 / 22:56
2
answers

Show content according to Select

How do I, when the user selects the unit, show the content div according to the selected unit? Would it be with jQuery? <div class="form-group"> <label>Selecione a unidade</label><br> <select class="form-co...
asked by 11.06.2018 / 20:30