Questions tagged as 'jquery'

2
answers

draggable does not apply to element created using append

What can I correct so that the .draggable() method is applied correctly to the elements created using the add button? $(document).ready(function() { $('.drag_drop').draggable({ addClasses: false, containment: "par...
asked by 22.03.2017 / 18:27
2
answers

Jquery .val () fails to read line break

I have to fill in a textarea and I'm using the function .val () of Jquery, when there is text in a line there is no problem, but having 2 lines gives "Unexpected EOF" syntax error in jquery line 349 . what could it be? the data are lame fr...
asked by 18.01.2017 / 20:21
3
answers

How to make an event only load once javascript

Hi, I'm doing a web with jquery and c #. The problem I have is that when I click on menus on the web more than once, I think the html content of the page is being loaded again and again. With this, clicking on the menu repeats the click () ev...
asked by 17.03.2017 / 15:53
2
answers

Remove style from a clone depending on your Position (Jquery)

Only detail: How to remove style from the cloned elements in #campoBusq to its originating element? what is in:    # catheory > .cont-optionElement> .element ". $ counter. What methods could I take for this problem? User Template...
asked by 19.03.2017 / 17:57
1
answer

Capture the state of a Css animation

Greetings, I have the following div spinning with @Keyframes. What I need is that when you click on the same div, capture the current angle it is in. const go = document.querySelector('#box'); const box = document.querySelector('.box');...
asked by 26.12.2016 / 13:33
1
answer

How to improve (refactor) this code from JQUERY AND AJAX?

I have a code that although it is functional, I see that it can be improved a lot and thus save us a few lines. How can I do it? $(document).ready(function() { $('#bsubmit').click(function(e){ e.preventDefault(); var val...
asked by 14.12.2016 / 12:05
1
answer

Problem with jquery to prevent the page of a login from being reloaded?

I have the following jquery to validate the input data of a login, but I show the msj and the page is reloaded and the false return and e.preventDefault () does not do its function. $('#btnlog').closest('form').on('submit', function (e)...
asked by 10.12.2016 / 20:17
1
answer

Change jvectormap marker for an image

I am trying to change the default markers of jvectormaps for an image that is centered in a country according to the coordinates entered. The map code is as follows: <div id="world-map-markers" style="height: 400px" ><...
asked by 12.01.2017 / 22:58
1
answer

How to do so that the value of the input does not disappear

I am new using the typeahead.js with Django . I am also using handlebars_min.js . When I write three characters, the elements of my list that match the search are displayed. When I click, the element is put in input . The problem is th...
asked by 12.01.2017 / 22:18
1
answer

Work with all the fields returned by a PHP, JQUERY, MYSQL table

Good, I have a problem that is that I need to manipulate all the records that exist in a table, that is, I am creating an inbox, with inbox and the tables and the backend part are fine, it returns all the messages that they wrote to me, since al...
asked by 20.02.2017 / 21:45