Questions tagged as 'javascript'

1
answer

Capturing input data of type "radio" and transforming into JSON

(This project is being developed with Spring Boot + Thymeleaf) I have an html page that will work as a questionnaire containing more or less 100 questions (the code below is just an example). Each question has 4 inputs. <div> <inp...
asked by 24.05.2018 / 00:46
1
answer

Problem when validating field 'file'

I took a function here from the Internet to try to validate my 'file' field, which will be for the client to send photos, I want the client can not leave the 'file' field empty, without uploading any, and I want it to be of at most 300mb, and th...
asked by 11.06.2018 / 01:54
1
answer

jQuery function that closes the search field by clicking Esc

On the site I'm developing, there's a search field that only shows input when you click on the button. Now I want to close the input when I click the Esc key (when the focus is in the field). I have done a function in jQuery,...
asked by 11.06.2018 / 22:48
2
answers

Is it possible to customize an alert?

Between an if and else I have a call from an alert to return a response to the user, since the alert layout itself is not very much in line with the site layout, I would like to know how I can customize it. if(ainput5 == false || ainput4 == fa...
asked by 11.06.2018 / 05:08
1
answer

print variable Java script inside HTML

How do I print the various click inside the Html <script type="text/javascript"> $(".j_requerimento").click(function(){ var click = 1; $(".j_label_requerimento").append("<span>IMPRIMIR AQUI A VARIAVEL CLICK</...
asked by 11.06.2018 / 00:16
1
answer

Multilanguage page without formatting

I have a multilingual website using Ajax , but when I put it to change the language, the page does not overlap formatted. www.csvet.com.br By clicking on the US flag in header the error appears.     
asked by 15.04.2018 / 00:08
1
answer

How to identify the close event in MagnificPopup

I need to identify where the user clicked to close the lightbox MagnificPopup, because I'm going to take action on that. Option: -Close x -Escape -background which is the dark part . $.magnificPopup.open({ item...
asked by 12.04.2018 / 02:21
1
answer

Display array data ngRoute

Good evening, I have the following situation. I need to display all user data when it is triggered. My view <div> <h1 style="text-align: center;">Lista de usuários</h1> <ul ng-repeat="usuario in usuarios">...
asked by 17.04.2018 / 01:17
1
answer

Return to top button [duplicate]

I created a basic script to show / hide a return button at the top of the page: $(document).ready(function(){ // Add smooth scrolling to all links $("a").on('click', function(event) { // Make sure this.hash...
asked by 17.04.2018 / 19:44
1
answer

Picker does not select manually

I have this PickerUF component, which displays the list of states. import React, { Component } from "react"; import { StyleSheet, Platform } from "react-native"; import { Picker } from 'native-base' export default class PickerUF extends Comp...
asked by 17.04.2018 / 12:21