I was trying to remove an element from an array, and since I'm trying to learn a bit more about functional programming, I tried to change the old way I used to do this.
const myArray = [
{id: 1, label: 'first'},
{id: 2, label: 'secon...
I have a modal bootstrap contact form. I have the validations where they are validating correctly. Now my question is:
How do I when not to pass the validation it return the message in modal with it open.
When it validates and does not pass vali...
Imagine a traditional application in AngularJS
<!DOCTYPE html>
<html ng-app>
<head>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.5/angular.min.js"></script><title>...
I have the following JSON returned from a controller Laravel :
{
"id": 105,
"tratamento_id": "24",
"eim": null,
"oft": "12",
"codigo_produto": "CO009-1200-1200",
"descricao_produto": "COMPENSADO 9X1200X1200 ",
"t...
I have some buttons that in the click of the same directs an ajax request to an external file that adds a product, however this does not matter much in this case. I manipulate these buttons, and every time the button with span buy, where...
night!
I need your help on the following question:
I have 2 .json files, but when I open it in Notepad ++ I realize that the content is disorganized.
Example:
File1.json
{
"xxx.yyy.E-mail": "E-mail",
"xxx.yyy.Senha": "Senha",
"xxx.y...
I need to load a "fake loader" when a menu link is triggered, but in this menu some links are empty <a href="javascript:;"> or <a href="#"> , I need to only identify these via javascript and not open the loader. >
I ca...
I have the following script in my HTML, what it does is simply check a checkbox whether or not it is selected and in case it is adding a value, my question is, how do I make this value to be formatted in currency? For example, instead of appea...
I have a code for previewing images upload in Javascript.
But I would like to use with document format, so instead of showing the image that will be loaded, show only the name of the pdf / word file or an icon as well.
Code I've already done:...
I have a question.
I have a form in a bootstrap modal where I have a recaptcha, the form's action is valid whether it was selected or not.
I give an alert and it goes back to the previous page, but the modal is closed.
Would you like to...