Questions tagged as 'javascript'

2
answers

Problem with my form

Hello stackoverflow friends, I have a question about why my form makes my page update if I still do not implement anything to send it by e-mail greetings to all and I hope you can solve my question. <section id="fs-form-wrap" class="f...
asked by 11.09.2018 / 01:52
1
answer

how can I restrict offensive words in javascript

I have a question: I want to restrict offensive words captured by localStorage in javascript, how can I do it? Currently my code is as follows: /*Funcion de Capturar, Almacenar datos y Limpiar campos*/ $(document).ready(function(){...
asked by 25.09.2018 / 19:26
2
answers

How to use windows.onclik to close a dropdown menu? Or simply close it

You see I have two dropdowns menu which are opened by clicking a button (each button has its menu). Well. The code of that two menu is the same except that I made changes in the classes and Id so that to each I give different styles with css and...
asked by 14.10.2016 / 02:55
4
answers

add values to a table with javascript

Good, I'm trying to enter values into a table. From any form. The idea is that it is the value that was entered in the inputs, at the time of saving, this data is transferred to a small table. How could I do it with javascript? This is what I ha...
asked by 16.10.2016 / 02:55
3
answers

How to end session automatically

What friends are I working on a project and I have this to close the session, but I would like to implement JQuery Confirm the problem is that I do not know how to do it, I have this code, which does the following with a sweet alert: var tim...
asked by 05.09.2018 / 23:15
4
answers

perform a single function jquery once?

I have this function, function llenarcombos() { $.post("/Oficina/OficinaGeneral", function (data) { $.each(data, function (i, item) { $('#Ecbooficinageneral').append('<option value="' +...
asked by 01.08.2018 / 17:16
2
answers

Difference between ion-item and div class="item" ionic

I would like to know what difference there is between using one versus the other, because you see it in the style documentation ( css ), and the other one in < strong> javascript . What advantages one has over the other when creating the...
asked by 26.02.2016 / 17:02
3
answers

preventDefault href does not work

I would like to eliminate the redirection in the a tag since currently when I click, a modal opens, but I do not want to be redirected to the browser page, I have tried with preventdefault and it does not work for me. I'm working w...
asked by 25.02.2016 / 13:29
1
answer

show an alert when selecting an option

I would like to know how to display an alert in javascript when you select an option from a list. my code: <!DOCTYPE html> <html> <body> <select id="test"> <option id="uno" value="uno">uno</option> <op...
asked by 18.07.2018 / 01:13
1
answer

Fail on request data with json

I have a problem with a data request with json from a form that shows me this error: Uncaught SyntaxError: Unexpected end of JSON input     at JSON.parse ()     at XMLHttpRequest.xhr.onload (form.js: 52) What could be due? Thanks the model-ad...
asked by 30.07.2018 / 12:15