I need to search an array with values of type:
equipamentos = [{marca: 'Nomedamarca1', modelo: 'Modelo1'},
{marca: 'Nomedamarca2', modelo: 'Modelo2'},
{marca: 'AlgumNomeComCase', modelo: 'Modelo3'},...
Good afternoon!
I made a function to prevent the user from pressing twice on the same button, this part works perfectly. global.js
$('.form-disable').on('submit', function(){
var self = $(this),
button = self.find('input[type="submit"], b...
I have two buttons in a table that stays within a while (in the php code) and I have a modal outside of that while structure. My question is how can I get the individual id inside my table that is inside the loop repeat and play in the input fie...
I would like checked checkboxes to be saved and loaded whenever the page is reloaded or reopened, in addition, icons will be displayed for the options.
I made a function in java script that loads the functions when the page is opened, using t...
Is there any way to reduce the size of the photo before uploading? Note: It is not just a resize, because some test I did was resized and did not decrease the size of the photo.
I would like to check if the upload is of type image and Dec...
I have a list of items (which comes from the database), I need to compare each item from one of those and if the value is 0 change the text.
Below is the function I am trying to use to change the value of the item.
function isFree(){
var p...
I have a Radio Button group, some of them have other inputs as children, if they check the Input Father they should appear, if it is unchecked they should disappear. p>
As in HTML below:
<div style="padding-left:30px;clear:both;" cl...
How to make a dazzling call with the native Javascript promise?
I mean, I would like the sentence below to be executed one after the other and that I could know when this sequence of promises are finalized.
var promise;
console.log...
I have a website that has 5 different languages and when choosing a language the text of the page changes! For this I did a function:
<script type="text/javascript">
function submitForm() {
var thelang = document.getElementById('lang...