Questions tagged as 'javascript'

2
answers

Onkeyup event with Jquery

I need to do the following onkeyup of inputs that have class virgula_nao , obey the function: $(document).on('keyup', '#virgula_nao', function () { valor_do_input = valor_do_input.value.replace(/,/gi, ".");} }); I do...
asked by 30.06.2017 / 15:22
3
answers

How to make a field of a clickable table?

I'm doing a project where when I click on employees it opens a page with the listing of employees as you can see in the photo. I need the name of each employee to be clickable, to be able to later open the complete page of the official with all...
asked by 30.06.2017 / 13:49
1
answer

How to open a random image

I have a new question and this has been the best place to find answers, since thanks. My problem and the following, I'm doing a school questionnaire for my son. And a simple thing, at least it should be. A question with 3 answers, one right and...
asked by 02.07.2017 / 16:03
1
answer

Close function when clicking outside the element

I have a script problem below, the function myFunction and myFunction1 normally open the dropdown when clicking the button, but in the part of clicking outside and close, only the second event is working. <script> f...
asked by 30.06.2017 / 19:46
1
answer

Javascript redirect and set cookies

I have the following code with Javascript <script type="text/javascript"> $(function() { $("#loginForm").submit(function(event) { $("#success").css("display", "block"), $('#success').html("Autenticando..."); $('#...
asked by 01.07.2017 / 13:05
1
answer

Options from select to closest

How do I get all options (html and values) tags with jquery <select id="test" name"algumName"> <option value="1">1</option> <option value="2">2</option> <optio...
asked by 22.09.2017 / 02:29
1
answer

Mysql Auto-increment conditioned to a table column

Hello, I'm trying to create a vehicle table that looks like this with php and mysql: +----+-----------------+-------+--------+ | id | nome do veiculo | marca | codigo | | 1 | Gol | VW | 1 | | 2 | Golf | VW...
asked by 20.09.2017 / 20:03
1
answer

JavaScript - formatMoney - How to use

How do I make my input stay with the decimal places .... I need it to format in #total_compra follow code <script type="text/javascript"> $(document).ready(function() { $("#evento_quantidade").change(function() { var qtd = $(this)...
asked by 24.06.2017 / 15:49
1
answer

How to create a React component of select that in the bind event "change" get the right value that was selected?

Good evening! I'm trying to make a select component that is used more than once inside another Parent component. To create the "option" tags, I make a map inside the array that I created as a state of the Pai / App class. So far, it wor...
asked by 24.06.2017 / 23:42
1
answer

AngularJS I need to create a list-divider in the middle of a list

Hello! I'm doing a project for college in Ionic using angularJS and in it I have an arraylist with several words, using the orderBy I left them in alphabetical order, but there is a problem, I have to make every time the initial letter changes a...
asked by 30.06.2017 / 03:03