Questions tagged as 'jquery'

1
answer

How to get the input before the button?

I have some input of text type followed by buttons : <input type="text" /> <button>inserir</button> <input type="text" /> <button>inserir</button> <input type="text" /> <button>inser...
asked by 24.01.2018 / 01:02
2
answers

JQuery focus in the field

Is there any method in jQuery that I can focus on input with error? I'm trying to do validation without using the JQuery validation libs. My problem is this: the user is at the end of the screen and my validation field is in the middle....
asked by 23.01.2018 / 16:20
2
answers

Multiple dropdowns on the same page

I'm having a problem with the example below. Several dropdowns in jquery on one page, all open perfectly, but all open, even when clicked on another dropdown, I wanted only one dropdown to be open, and that when clicked on another, it would clos...
asked by 26.01.2018 / 01:02
2
answers

remove select options from other selects

Well, I have 4 html selects and in all of them I have the same options, I wanted that when an option of the first select was selected it would be disabled in the other selects, it is possible to do it efficiently and quickly with jquery?     
asked by 28.10.2017 / 16:48
2
answers

Leave input in focus, after alert

I have a valid form if the cpf or cnpj entered are valid, but if I submit error it changes to the next input, but I would like it to remain in the cpf input still for validation. Example: $('#doc').blur(function(){ var tam = $('#doc')...
asked by 25.01.2018 / 13:14
1
answer

Fill in a form with Json data in jquery

Good evening. I have a url that gets this structure in json: { "kind": "books#volumes", "totalItems": 1, "items": [ { "kind": "books#volume", "id": "AKs0vgAACAAJ", "etag": "4X6Xl91J0mQ", "selfLink": "https://www...
asked by 03.11.2017 / 02:57
1
answer

How to display time in 24 hour format using datetimepicker?

I'm trying to display in PM format, but whenever I select at timepicker it arrows as AM. $('.datetimepicker').datetimepicker({ lang: 'pt-BR', timepicker: true, format: 'd/m/Y h:i' }); WhenIselectthetime,example21:00itarrowsas09...
asked by 28.10.2017 / 04:14
3
answers

How to leave the selected menu active with jquery?

I would like to know how to make the selected menu active. Here's how my html code is and js, I think it's not working because when you redirect to the < a>, loses the js, when I use preventDefault works as I wanted, however it does not go...
asked by 30.10.2017 / 11:57
1
answer

Give hide or show when clicking another element

I have 4 threads, and I would like to display only what I clicked, and if another is open close, I know how to do this with jquery, but I'm doing it in a way that I do not think is more "correct", I leave the code too long putting too many const...
asked by 02.10.2017 / 22:37
1
answer

How to make animation occur several times

I have a project where I imported animate.css so the transitions would be funnier, but one of them only occurs to me once. var check = true; $(document).ready(function(){ $(".p2").hide(); $("button").click(function(){...
asked by 29.09.2017 / 13:08