Questions tagged as 'javascript'

1
answer

retrieve select id value and get selected value from this select

Hello, my question is to store an id and a value of select and options in a variable. I have this structure: <div class="col-sm-6" id="results"> <select class="form-control" id="1"> <option value="true">Sim</option&...
asked by 05.09.2018 / 16:09
1
answer

How do I get the location in google maps api according to the click of the user?

I entered the google maps website api and saw how to place and use the api on my site, but I was only able to make it register a place according to what the user types. For a better experience, I wanted that when the user clicked somewhere on th...
asked by 18.06.2018 / 01:15
2
answers

Input for receiving cpf

Hello, I'm new to the javascript field and I'm having a question, how can I get the value of the keys and lock strings, special characters, and accepts only NUMBERS in my field. My Code Down <input type="text" id="numero" placeholder...
asked by 18.06.2018 / 01:03
2
answers

Selected combo component

I'm having a problem loading the screen with a selected combo item. I've tried with jQuery, angled and it did not work. I already researched other answers here and none of the alternatives worked. Anyone have any idea what it might be? <...
asked by 18.06.2018 / 13:49
1
answer

How to handle the JSON response with JavaScript

<script type="text/javascript"> $(function($) { $('#enviaadv').submit(function() { //document.getElementById('btnConsultar').disabled = true; $('div.mensagem-erro').html(''); $(this).ajaxSubmit(function(respost...
asked by 18.06.2018 / 19:35
1
answer

Is it possible to add an event listener in the url?

The idea is that when there is a change in the url, execute a function that will do something with this url, for example, the user is on page exemplo.com/#/algumacoisa/2 which is a table with pagination, in case it would be on the page 2,...
asked by 15.06.2018 / 22:36
1
answer

Problem with Get, Set javascript

Can anyone tell me how I make a set of an MVC Javascript class? I submit, but whenever I redeem the value to check it gets undefined. Here's an example: charController.js : class CharController { constructor() { this._charNameSelec...
asked by 17.06.2018 / 17:34
1
answer

Clearing div border with jQuery

How do I clear the border of a DIV in Loop with jQuery? For example, I'm having a modal, looping data from the database with Json, I have a button to select every item returned from that list, so I did the following, I created a class name: b...
asked by 21.06.2018 / 02:35
1
answer

call a page passing parameters in the url

I have a simple HTML file that is accessed by: https:111.111.111:8080/index.html/?login="me"&password="1234" The problem is that trying to access it gives nonexistent page. I put a page teste.html there, with pure HTML an...
asked by 19.06.2018 / 16:30
1
answer

Strange behavior in Javascript [duplicate]

   This question is more out of curiosity, I have already addressed the problem in my code. I made a money mask using javascript, it was working perfectly, until I entered value 4.9. By debugging the code I discovered that the problem w...
asked by 21.06.2018 / 15:39