Questions tagged as 'jquery'

1
answer

How to remove an element added by the append method according to the selected option of a select multiple?

the problem is: I have a multiple select that lists records from a table, so when I select a select option it adds an input with the user ID inside a DIV, and when I deselect an option it continues adding a new input. How can I prevent...
asked by 21.04.2018 / 19:25
1
answer

Swap classes with Jquery ToggleClass

I'm trying to show / hide a submenu when I click on the item in that menu (WORKS). By default my submenu is "hidden" with CSS .children { position: fixed; opacity: 0; } and I need to click on it to show it by exchanging with thi...
asked by 30.03.2018 / 02:15
4
answers

Edit Text in html

I need to know if there is any way to enable a text tag to be edited in html with jquery For example, I have a p-label that is shown as plain text in html but I want that when I press a button it is enabled as if it were a textarea and it can...
asked by 10.08.2018 / 18:11
2
answers

The page is restarted after uploading the second file

I created a file upload works well when it's the first time I upload a file, when I try again, if you upload the file, what you should not do is reload the page since I use Ajax to send this, I'm new to the subject and I've searched a lot and I...
asked by 06.04.2018 / 06:33
1
answer

Change language datetimepicker jquery

I would like to be able to change the language of the datetimepicker and there is no way to do it, I have seen some examples and it does not change anything. function datepicker(){ $(".datepicker").datetimepicker({ format: "d-m-...
asked by 05.04.2018 / 11:20
2
answers

Waypoints and Animations in HTML with JQuery and CSS

Good morning, I am trying to implement animations to elements when they are shown on the screen, but I can not do it, I think the problem is in the JQuery code that I am using, since when trying to add a class to the object it does not, but if I...
asked by 04.04.2018 / 23:39
1
answer

Clone an item and make an animate without losing the original

I'm trying to simulate as if you were saving an item visually. $(function(){ $(document).on('click','#save',function(){ $('#foo').animate({ left: '100%', bottom: '0', opacity: '0',...
asked by 24.04.2018 / 21:33
1
answer

Jquery UI combobox selected item

I explain my problem: I have implemented this combobox on my homepage. Everything is correct except that the color you select when hovering in one of the options is always blue and I need to modify it to another color and I can not find the wa...
asked by 24.04.2018 / 08:21
1
answer

Show square added within HTML svg?

I want that by clicking inside the gray square, I draw a square of 10px x 10px in the place I clicked, I add the element inside the SVG, but it does not draw it. <!DOCTYPE html> <html lang="en"> <head> <meta charset="U...
asked by 14.06.2018 / 04:23
1
answer

How to put a background in a loader

I'm designing a loader, which is the following: var myVar; function myFunction() { myVar = setTimeout(showPage, 1000); } function showPage() { document.getElementById("loader").style.display = "none"; document.getElemen...
asked by 07.03.2018 / 22:21