Questions tagged as 'javascript'

1
answer

How to do OnClick action in Select Option [closed]

I need to do an onclick action on each option of a select with a different link according to each id, but it is not working. $label .= "<select size=\"1\" name=\"modulo\" class='form-control'"; $label .= "<option value=\"0\" selected=\"...
asked by 05.02.2018 / 12:54
1
answer

"Uncaught SyntaxError: missing) after argument list" in .append JQuery

I'm getting "Uncaught SyntaxError: missing" after argument list "which accuses the line of the last closed parentage, this inside the callback of a jquery post. I tried to close anyway possible, and even then I get the error. I do not understand...
asked by 23.02.2018 / 11:55
2
answers

Undefined when attempting to use the valid JSON received

I have a boring problem of finding the error, I'm already looking for hours here. I'm getting a JSON from PHP using JQuery, I can see it as you can see below the result of the answer "date": { "sucesso": 1, "dados": { "BTC_YAMR...
asked by 23.02.2018 / 03:12
5
answers

Getting html class with PHP variable in javascript

I'm trying to get the value of a select from jquery from the class, but this class has part of the value as a php variable. Currently my code looks like this: echo ' <select name="contarecebvenda" class="selects2'.$linha[cod].'" id="...
asked by 23.02.2018 / 17:06
2
answers

Check Negative Balance

Via JavaScript or Jquery, I need to check if there is any negative balance. If you have a negative balance, then: var BALANCE_DISPONIVEL = 0 if no: var BALANCE_DISPONIVEL = 1 Below is the html source: <html> <head> &...
asked by 23.02.2018 / 14:04
1
answer

Change element capture in cars

I have the following carousel done in bootstrap                                                                                                                                                                                     ...
asked by 12.03.2018 / 15:40
1
answer

Update child component method VueJS

I'm trying to update a method of a child component, but so far I have had no solution, my question is as follows. Within Header.vue , I display the pending hours <span> <b>{{Hours}}</b> horas pendentes </span&...
asked by 13.03.2018 / 14:40
1
answer

Sending emails with dynamic inputs

I'm using a code like this: link to add fields to my form. How would php be to submit forms in this way? Following is the current php code: <?php header("Content-type: text/html; charset=utf-8"); ?> <?PHP if ( isset( $_POST['...
asked by 12.03.2018 / 15:05
1
answer

Update exported property on nodejs

I'm passing my electronjs app (nodejs) to the MVC standard and I encountered a problem when updating an exported property. Example of my application.js : // Importa os módulos privados const config = require('./config/config'); con...
asked by 12.03.2018 / 09:15
2
answers

Upload with json + Modal + Javascript

Good evening, I need a help, I'm uploading multiple files in a modal, but the php return does not occur as expected. CallingMODAL:$('button.btnaddimg').on('click',function(e){e.preventDefault();varid=document.getElementById('idclienteimg').valu...
asked by 12.03.2018 / 02:52