Questions tagged as 'jquery'

1
answer

Catching more than one element with JQuery / JavaScript

Good morning! Would you like me to get more than one element with JQuery? For example, I'm doing this in my code: if (!is992()) { $j('.filters .title--sm').click(function(){ $j('.filters__list').slideToggle(50); $...
asked by 13.10.2017 / 13:47
2
answers

Position div or button inside at a specific point in an image

I need to mount a kind of map, where the user clicks on a button that is in the x, y coordinate of an image and a modal opens. I can not use background-image for this, so I put the image with z-index: -1 , now I need to create some but...
asked by 09.05.2018 / 15:26
1
answer

Use the same script for multiple forms

How do I use only one script for multiple forms? <script> $(document).ready(function() { $("#formPost").submit(function() { var dados = $(this).serialize(); $.ajax({ type: 'POST',...
asked by 23.05.2018 / 19:49
1
answer

Difficulty in getting a certain type of return in C #

I have a return that I send via Ajax that it returns in the URL as follows: "http://localhost:11910/ProtocoloExterno/Inserir?itensContrato[0][id]=4&itensContrato[0][valorUsado]=150000,00&itensContrato[1][id]=9&itensContrato[1][valo...
asked by 14.05.2018 / 16:41
1
answer

I can not get data-object value

The following problem has several inputs listed with the same css class, however I need to get a data-atributte of each one by clicking on its input to get its value from atributter: For example <input type="button" data-object="{"nome...
asked by 12.12.2017 / 12:08
2
answers

Sending data with ajax

I have an online chat that works with ajax and PHP . However, strangely, when I type only an interrogation ( ? ) and send the jQuery , it returns an error in the console. ajax enters error() and the query ( ? ) is inse...
asked by 12.08.2018 / 21:32
1
answer

Dynamize language for placeholder

I do an ajax request to fetch in the database to bring the language configuration, type, PT-BR, EN, and so on ... I want the placeholders to be changed according to the chosen language. For example, instead of being placeholder='Digite seu...
asked by 29.08.2017 / 01:31
2
answers

How to make a listbox where I can select more than one value?

I want to make a listbox, where the user can select several options, but using the select multiple, I have to hold ctrl, but this is not ideal, many people will not know that. Can anyone help? <div class="form-group">...
asked by 07.09.2017 / 05:19
2
answers

Validate field with integer value, in decimal format (check if value is less than)

Hello, my question is about a field validation for decimal value. If the value is less than 500.00 I show an error message, otherwise step to the second field, as soon as the person types the value, the mask is already added. I'm using it thi...
asked by 21.09.2017 / 21:30
2
answers

Disable / enable scrolling with JQuery

I need an area that when clicked, prevents scroll of the screen while the cursor is over that area, however, it works normal outside that area. I have achieved this with a function that I will leave next, but when I click the close button...
asked by 22.04.2015 / 15:01