Questions tagged as 'jquery'

2
answers

focus () of JQuery in Firefox

Good morning, I have a problem with firefox. I have a method that clears an input with a value that I consider invalid there in the sequence I give focus to that input. In Internet Explorer and Chrome it works. The methods I use is this:...
asked by 30.11.2016 / 13:51
1
answer

How to select Option value with Ajax data return?

I have the following HTML code: <select id="priorities-info" class="form-control selectpicker" data-live-search="true" disabled="" tabindex="-98"> <option value="1" data-tokens="Alta">Alta</option> <option value="2...
asked by 30.11.2016 / 13:13
1
answer

How will this if be interpreted?

I have a function that performs different actions on the page according to the callback passed to it, I am using if to check which callback was called in function('callback') but now I had to do an update on it and now it is like t...
asked by 22.12.2016 / 22:46
1
answer

Protect script with user data?

Currently on my page I load some scripts returned by PHP as follows: $(".div").html($("<script />", { src: 'http://www.dominio.com/functions/dados.php?user='+xxxx+'&acao='+xxxx+'' })); Within data.php I am already checking if...
asked by 22.12.2016 / 23:34
2
answers

Skip the JavaScript line

I have this JavaScript function that only allows the user to type 42 characters. Can anyone help me, I need every time I get at 42 characters skip a line instead of blocking typing. My problem is in onKeydown and onKeyup . $('.sum...
asked by 19.08.2016 / 20:14
3
answers

How to pass variable value from javascript to php? [duplicate]

How can I pass a php variable to the value of a select, whenever a different option is selected. I have tried as below but it returns me [object HTMLSelectElement] $("select#tipo_documento").change(function (event) { var...
asked by 23.08.2016 / 14:57
1
answer

Filter Element Option

How do I get the option object with Jquery specifically this: $('#nome_responsavel').blur(function () { var id = $('option[value="'+$('#nome_responsavel').val()+'data-toggle=p"]').attr('id'); alert(id); }); <script src=...
asked by 26.07.2016 / 20:17
1
answer

JQuery - Each with multiple arrays

I need to make a each with several items, for example: How can I do this? The "item" already generates the result of the array "data.id_site" but I need a new array together, "item2" which generates the result of the array "data.name". It...
asked by 27.07.2016 / 17:50
1
answer

putting html in title, using query

I have a tooltip plugin that works with jQuery, it's very simple and practical. The problem is that I'm trying to put an html inside it. And it returns me with html code instead of the result. Does anyone know of any way to resolve this? Foll...
asked by 02.08.2016 / 16:32
1
answer

Form within an html Form

A doubt that may be simple, but I had no choice: I have a main html FORM, which captures all the data in a table, the problem is that there are images uploaded inside that form, and that upload is instantaneous without the form submit (made w...
asked by 01.08.2016 / 19:16