Questions tagged as 'javascript'

2
answers

When changing class with Jquery, then Jquery no longer works

Change class a div with jquery, but when I try to use jquery with the class that I changed it does not work. $('.ver_drop').click(function() { $( this ).text( "Ocultar drop" ); $( this ).toggleClass( "ocultar_drop" ); $( this )....
asked by 02.10.2017 / 17:34
2
answers

How do I remove a particular element from an array in javascript? [duplicate]

I have an integer array, I'm using the .push() method to add elements to it. Is there a simple way to remove an element from the array? THE equivalent of something like: array.remove(int); I must use pure javascript without framewo...
asked by 16.09.2017 / 16:35
2
answers

how to use a function $ (document) .ready (function () {}) of JS?

My problem is that I want to use that function for several pages, I just do not want to be placing the <script></script> in all of them, it's very exhausting. You see, I'm starting to use Alertify.js and I want to us...
asked by 17.09.2017 / 16:53
1
answer

Image does not load with JavaScript

Why does not my image on my desktop load my HTML page?  I'm doing it through JavaScript, but just upload the images from the internet by putting the url. This is my code: function mostrar() { var src = "C:\Users\User\Desktop\fondo.jpg";...
asked by 25.12.2017 / 16:22
1
answer

problem with extracting form data with jquery

I have this example form with jquery and javascript in which the user can add forms to add more phones if desired and delete them equally but I want to send the form when sending a message, I do not save the data on a base of data, I simply want...
asked by 30.03.2018 / 15:00
2
answers

How to make PopUp appear by JavaScript when done with CSS

I have a PopUp modal that is not done in JavaScript only with HTML and CSS, I need to send it to call with JavaScipt but I do not know how. The button with which I'm calling from HTML <a class="modal-open" href="#modal">PopUp Modal<...
asked by 04.04.2018 / 18:26
3
answers

how to include external libraries in Ionic

Normally when you are making a web the libraries are included as follows: <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/aos/2.2.0/aos.css" <script src="https://cdnjs.cloudflare.com/ajax/libs/aos/2.2.0/aos.js">&l...
asked by 04.04.2018 / 18:10
4
answers

Redirect from java script, inside a Json Succces

I am trying to validate the login of my application with a POST method, but the problem is that I do not know how to redirect once I get the response from the server. $.ajax({ type: "POST", url: '@Url.Action("IniciarSesion", "In...
asked by 27.06.2017 / 02:01
1
answer

Chart Js, multiple lines in a label [closed]

Requirement To be able to insert two lines in a label, that is to say that when you press "HERE TWO LINES" the two lines you assign are activated or deactivated. Image: Expected link var ctx = document.getEleme...
asked by 09.06.2017 / 14:27
3
answers

How to subtract between 2 hours in PHP

I'm using Codeigniter and I want to subtract it in the view. <?php $cadena = strtotime($seguimiento->horaInicio); $cadena = date("H:i", $cadena); echo $cadena; $cadena2 = strtotime($seguimiento->horaTermino); $cad...
asked by 04.07.2018 / 15:11