Questions tagged as 'javascript'

2
answers

Javascript TypeError: variable undefined

I have the following problem in my javacript code, I have searched for all kinds of solutions and nothing. Here I have my code ready and running trial version ajax.html there all var arreglo; var area = new Array(); v...
asked by 15.12.2017 / 21:06
1
answer

Sweet alert message disappears very quickly

By clicking on the button, the SweetAlert window appears with the message, but it disappears immediately and does not allow the user to read the alert. Script: <script type="Text/javascript"> function Notificacion2() { s...
asked by 22.01.2018 / 15:39
1
answer

Get full URL of the href

I have the following code that when pressing a <a href I get the url of this one: <a href="http://localhost/uno/dos.zip">DESCARGAR</a> and jQuery $('a').click(function(event) { var url = $('a').attr('href'); aler...
asked by 21.11.2017 / 21:30
1
answer

Problems redirecting and validating form in javascript

good! I'm pretty new with javascript and I'm having a serious problem validating and redirecting the input. This is my html code: <div class="grid-container"> <a href="index.html" class="back"><span></span> <...
asked by 24.11.2017 / 05:01
2
answers

Capture value confirm with php

My problem is that I press cancel or press accept in the confirm, it enters me anyway in the if. $comparar = true; $comparar_js = "<script type='text/javascript'>confirm('¿Borrar?')</script>"; echo($comparar_js); if($comparar==$c...
asked by 08.12.2017 / 11:47
2
answers

How to make a scroll on the same page when selecting a Radio Button option?

I need that when a radio button is selected, lower the screen automatically. I have this HTML code: <label><input type="radio" name="radio" value="1" id="boton1" class="ancla" data-ancla="scroll" /></label> <label>&...
asked by 17.11.2017 / 22:06
2
answers

Subtract percentage in real time in an HTML with JavaScript, or by calling a PHP

It is to make a simple form where we put the data of a monthly expense in number. The idea is that when doing click in calculating savings show you again your spending and the% saving 8% . I need to know if with AngularJs or with php...
asked by 01.12.2017 / 23:11
1
answer

Problem with the collapsible of jquery mobile and ajax

Good afternoon. I'm making a mobile application with jquery mobile and I have a problem with the collapsible elements. I make an ajax call to the server to get data, and if the answer is correct, what I want is to insert as many collapsibl...
asked by 28.12.2017 / 13:01
3
answers

How can I rename the name of a tab element in materializecss?

Hello Stackoverflow people, I hope you have a great day. I'm working on a project and I have to use the tabs elements of the Materializecss framework (a material design framework). Basically I want to achieve the following behavior in the tab el...
asked by 26.12.2017 / 04:43
1
answer

Function that transforms value of an input

I have an input that collects the value of height, and a function that transforms the value: case 1: if income 123 adds a zero (0) and the result is 123.0 THIS GOOD case 2: if you enter 123.4, leave it as is. IT'S GOOD case 3: if income 9...
asked by 10.11.2017 / 16:20