Questions tagged as 'javascript'

2
answers

Message from "Loading ..." with jQuery.post (ajax)

I am using this type of data sending through jQuery.post, where do I place a loading image ... or a message while the function returns something? $.post( "ajax/test.html", function( data ) { $( ".result" ).html( data ); });     
asked by 02.03.2016 / 00:52
3
answers

Change class css dynamically in javascript

I want to change the value of a property of a css class dynamically with javaScript For example, having: $(".miClase").css("visibility", "visible"); .miClase { visibility: hidden; } <script src="https://cdnjs.cloudflare.com/a...
asked by 17.12.2018 / 17:23
1
answer

Hide div if you do not have multiple classes

I have a set of div that I can show or hide by using checkboxes . I am using jQuery to find the div with a certain CSS class, and just display them. The html is the following: <div class="inputs"> <input class...
asked by 12.02.2016 / 12:09
5
answers

Redirect to url when clicking (settimeout)

I'm trying to make a function in js so that when the user clicks on a link spend a few seconds and automatically redirect to another url. function redireccionarPagina() { window.location = "http:/#"; } setTimeout("redireccionarP...
asked by 15.11.2017 / 12:37
2
answers

Input does not assign value

I have a function in javascript that creates a row in a table, in the row to enter I have a column of type input and when assigning a value to that input does not work anymore if I change the type by label if the val...
asked by 28.11.2017 / 23:26
2
answers

How to remove all class l tags as long as they have a different id than a selected one?

This is the code I use to add the classes and then remove them, is working but if I have more menus the code is plowed giant and I do not want that to happen base_url = $('#base_url').val(); $("li#6").on('click', function() { url =...
asked by 11.05.2018 / 16:52
4
answers

Display data from my JSON

I can not display the data I get in JSON format, this is the code I use. This is my jquery function, I take the data of a field, I send them by post and I receive the answer which I send by the function cargar_productos that I want to...
asked by 15.05.2018 / 22:18
3
answers

Draw functions f (x) with JavaScript and canvas

My idea is to paint a x function using JavaScript and Canvas , I've been looking through the internet and have not found anything about it, I may have looked bad, I do not know, but the question is that I'm not sure how to start, here I lea...
asked by 09.03.2017 / 18:23
1
answer

Validate cloned dynamic fields. Parsley and laravel 5.1

I have a form in which I can add, in my case, order lines. This is done with JQuery, cloning the entire line.  I use laravel 5.1 for the backend and for the client side I am occupying a JavaScript library of forms called parsley. At the time of...
asked by 19.10.2016 / 21:46
2
answers

Problem with variable when going through jQuery

Good day I have the following problem: I make a query with a patient that is in the database, but I get that it does not exist in this. I'm using jQuery I use a function that directs to another page and passes a variable 'document' to be p...
asked by 27.11.2018 / 17:12