Questions tagged as 'javascript'

2
answers

Subtraction in jquery

I have this function in javascript, and wanted to pass it to jquery. The user clicks a button in html and calls the function for a discount. ' <script> function verifica(){ var preco = 100; var desconto = 0.30; var total; i...
asked by 26.08.2017 / 23:45
1
answer

Using the Select plugin 2 - How to disable select click

My page: <!DOCTYPE html> <html> <head> <title></title> <!-- 3 coisas para o plugin funcionar --> <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstr...
asked by 05.12.2017 / 19:09
1
answer

Take images from a folder with javascript and display on a Slide

Hello! I have a slide that works normally. But I have to keep passing the link of each image to him. What I wanted to do is to put a folder path to identify the files in png or jpg and display them automatically with javascript. The code l...
asked by 06.12.2017 / 17:25
1
answer

Form send JS to a PHP

Currently I have developed an HTML form and validated the same with JS, I am now wanting to send this data to a MYSQL database, however I am using in the ACTION of the form the address of a page in PHP, which contains the entire structure to ins...
asked by 26.09.2017 / 23:55
2
answers

Load code according to device

The following is similar to what I have on the home page of the site: <div class="text-center"> <div id="minhaClass"> <a href="<?php echo get_site_url(); ?>/texto-1/">texto 1</a> <a href="<...
asked by 26.09.2017 / 23:29
1
answer

Get PHP Modal Window Data

Clicking on unit opens a table inside the modal that from the user's choice inserts the desired line in the input. But when I click on any line the whole table value is inserted. Does anyone know what I should change in javascript? <div cla...
asked by 26.09.2017 / 16:35
1
answer

Event Redirection Offline Offline HTML5

How do I identify if the HTML5 app identifies and redirects if it's offline or online? Ex: When you open the app if you are without internet it loads a warning html and if online it redirects to a website. I found this code but I do not kn...
asked by 26.09.2017 / 15:38
1
answer

Change student status from active to inactive

I have a bank where saved status = 1 for active, and 2 for inactive. Is there any way I can deploy to the page the writing or a button (or link in the word) "active" and when clicking, change to "inactive" and change the server from 1 to 0 witho...
asked by 03.09.2017 / 02:22
1
answer

Filter with Node.JS

I have a list of saved items in a Mongo collection, I'd like to know how to filter the original array. Follow the code api.filtra = function (req, res) { model.find() .then(function(itens) { for(i = 0; i < itens.leng...
asked by 03.09.2017 / 07:42
1
answer

Changing logic - jQuery

I have several buttons from which to add and remove products from an external file, but this is just a detail. Every time the buy button is clicked, the product is added, the button is "changed" to remove, and all other buttons are disabled for...
asked by 04.09.2017 / 19:11