Questions tagged as 'jquery'

1
answer

How to pass jquery content from one variable to another to be sent by ajax to a php document?

I have the following code proceso.js (function ($) { $.fn.Carpeta = function (options) { var defaults = { codigoI: false, }; this.each(function () { var crear = $(this); if (options.input) {...
asked by 14.11.2017 / 19:09
1
answer

Send a file with ajax and process it with php

I am developing a text editor, I am trying to upload live files, where you load the file and it appears in the text editor similar to word, I am doing it without a form so it is more complicated to process it with PHP, I want that when lo...
asked by 14.11.2017 / 18:34
2
answers

How to show Time With changing minutes and seconds?

I am assigning the value of the date and time to a text field using javascript, however instead of being a static value in the field, I would like the time to be constantly updated (for a query topic in the database) How could I do that? I am...
asked by 09.11.2017 / 21:24
1
answer

does not work correctly Bootstrap 4

I do not know if it should be like that in the first image and I have to edit it or if it's some code error. I took it from the official website; link , but it does not work as the example says. so it appears to me; The example of the pag...
asked by 12.11.2017 / 02:32
1
answer

How to darken all the elements except an iframe?

Hi, I have a page where clicking on a video title opens a player in the middle of the screen. Attached photo: What I do not know how to do is to select all the elements that are not this player and make them darken. The closest thing I've...
asked by 07.11.2017 / 08:22
1
answer

Problem when calling a 3rd html file with ajax and Jquery

I'm trying to call a second file, from another file loaded with ajax + Jquery The main file contains a button, which is listening for an event, that will load the container of an HTML file. The code of the main file is the following: <di...
asked by 04.11.2017 / 01:47
1
answer

How to pass data with json

I need to pass from PHP a JSON to each field that corresponds the value, for the moment I try with the value of select and you are supposed to put it in the cedula field. I attach the code $(document).ready(function(...
asked by 14.01.2018 / 23:03
1
answer

How can I add a class to a li if I do not have it or delete it if I have one

I'm adding some elements dynamically by Jquery to a page every time I click the button. I have the following class in the css file: ul li.marked { color: #ABABA4; text-decoration: line-through; } Now what I want is that if I click o...
asked by 28.10.2017 / 01:12
1
answer

How can I pass elements li from one list to another that works in both directions

I have a list and I need to click on one of the li to pass that element to the other list, it must work both ways. As I have consulted, I can do it with appendTo, but at this moment I am passing the complete list to the other list (it disappe...
asked by 28.10.2017 / 02:53
2
answers

Create new elements to DOM JS vs Jquery

I am trying to optimize a code that is written in Javascript and other parts in Jquery. The question is simple, what is more efficient to create elements? $(function(){ //OPCION 1 $('#myDiv').append('<button id="myBtn">J...
asked by 06.11.2017 / 15:42