Questions tagged as 'jquery'

1
answer

Problems inserting HTML using ajax

I'm having trouble inserting HTML using ajax HTML: <table class="table table-hover"> <thead id="thead"> <tr id="tr-thead"> </tr> </thead> <tbody id="tbody">...
asked by 18.03.2015 / 15:06
2
answers

Execute command in JS using string

I have a command to get the size of my json, but I need to use a string to indicate which object I want to get the size of: var comando = data.result[0][0].'Pedidos'.length; The error you give me is this: Uncaught SyntaxError: Unexpecte...
asked by 17.03.2015 / 17:57
2
answers

Find input values with the same class

How can I act to sum up the values of the inputs of the same class and that the number of inputs does not have a standard, that is, it may be that time the class p1 has 5 instances, hour 1. The structure would look something like this:...
asked by 16.03.2015 / 15:59
3
answers

How to confirm page output?

How can I confirm if the user actually left the page, because when I click on the browser to exit and say that I want to remain it turns the name of my a into 1 and then does not return to 0. Does anyone have a solution? Code below: <...
asked by 14.07.2015 / 19:19
1
answer

Remove jQuery registry [closed]

I would like to click Delete, delete the record from the mySQL database .. Without giving reload to the page ... using jquery .. Does anyone know how to report? Thankful     
asked by 12.07.2015 / 04:51
1
answer

How to pass a Jquery plugin as a parameter to the On event

I use the Datatables plugin, and in the table there will be the option to edit and delete, I want to show a confirmation if the user clicks delete. So I'll use the "confirm" plugin, however, this plugin is only valid for the first page of DataTa...
asked by 17.02.2015 / 18:36
1
answer

Lower index for multiple elements

By default jQuery always returns the highest index when the selector returns more than one element, as in the example below: <ul> <li>1</li> <li>2</li> <li class="error">3</li> </ul>...
asked by 19.02.2015 / 22:49
1
answer

JQuery - Tie inside a DIV

Hello, good morning. Simple: I'm giving a For a div: <div class="Laço"> <div class="ItemLaco"></div> <div class="ItemLaco"></div> <div class="ItemLaco"></div> </div> Now I need...
asked by 22.06.2015 / 07:34
1
answer

How to insert jQuery via HTML

My question probably has an obvious answer, but I could not find it on google. I have a website that uses Wordpress. On the site I use a plugin that stopped working (I do not know the reason). I discovered that the cause was a jQuery that for...
asked by 30.03.2015 / 21:09
1
answer

How to select the result of a json CEP in an existing option?

$.getJSON(url, function(json){ $("#pf_endereco").val(json.logradouro); $("#pf_bairro").val(json.bairro); $("#cidade").val(json.localidade); <---- $("#estado").val(json.uf); <---- How to put locality and uf informatio...
asked by 22.10.2014 / 03:21