Questions tagged as 'jquery'

2
answers

Get id onclick and send values via Ajax

I have a list of tasks, it has the status part, which shows for example 'In Test' and a Approve button. I'm trying to get this Approve button when clicked, grab the Task Id and send an update to it to change its status. But so far I...
asked by 29.08.2016 / 21:28
1
answer

Deleting content with JQuery

$('<li>').dblclick(function(){ var selfItem = $(this); selfItem.remove(); }); The above code is not working. I want you to double-click the item itself to remove it, and as an optimization I wanted to put a code so that only th...
asked by 30.08.2016 / 20:00
3
answers

Onblur event cancels the onclick event in jQuery or in pure JavaScript

I have a textarea field and a "submit" button just below, and added a onfocus and onblur event in that field. The onfocus increases the height of the field, and onblur returns to normal. I also added a onclick...
asked by 17.09.2016 / 21:43
3
answers

jQuery Run CSS Animation only when content is visible to the user

I'm using an animation library called Animate.css which can be viewed clicking here . However, when you create an effect for a certain div , the effect is activated even though div is not visible on the screen, ie you sti...
asked by 22.09.2016 / 15:14
1
answer

How to repeat content on several static pages?

The question is as follows, I have only .HTML static files and am looking for a simple way to create the blocks only once using only the client side . The idea is to respect DRY, is there any way to do this directly with JavaScript or jQuery...
asked by 19.01.2017 / 13:37
1
answer

How popular is a select with JQuery, JSON and AJAX? (MVC)

I followed some codes that I found here on how to populate a selectbox, but it is not working, is something missing? I'm getting a list of data with my Controller. JavaScript $(document).ready(function () { $(document).select...
asked by 03.10.2016 / 16:53
1
answer

Jquery keyboard event does not respond

I made this script to move a div by pressing the arrow keys. The right and bottom keys are working perfectly, however, the top and left are not, the code is the same as the others. Follow the code below:               <script src="...
asked by 01.01.2017 / 18:02
1
answer

Catch all parent elements

I'm having a situation, where I have a table that does not have class . It looks like this: <table> <tr> //Pegar aqui <td> //Aqui continua a tabela </td> </tr> <tr> //...
asked by 29.10.2016 / 14:07
2
answers

Get JSON value and set AJAX behavior

How to get the value of JSON with ajax and define the behavior of which div and which message to display, for example: If JSON returns {"error":"true","message":"Algo deu errado"} would show any div, "error" for example, with the messa...
asked by 20.10.2016 / 08:36
2
answers

How to return a pure Json (without XML encapsulation) using webservice in C #

I have a webservice running locally , which performs queries directly in a database using a string parameter . Here is the result of the query: ThesecondtimeIhaveajavascript(Jquery)applicationthatconsumeswebserviceviaAjax.Aftersomeresearch...
asked by 02.11.2016 / 15:08