Questions tagged as 'jquery'

1
answer

Validating text field that is dynamic

I have the following JavaScript function: //texto grifado cria mais campos valor e numero de parcelas function duplicarCampos(){ if (total >=4) { alert('Número maximo é de apenas 5 campos '); return false; }else {...
asked by 11.11.2014 / 16:32
2
answers

How to load external scripts

I'm adapting a theme (Bootstrap) with MeteorJS but the theme has more than 15 plugins (jQuery), I can not just put them in the /client folder and load all at the same time, some things (some in despair): Put the scripts in the temp...
asked by 12.11.2014 / 19:44
1
answer

Ignore data type checking when using $ .inArray

I'm having the following problem with jQuery : When I try to check an existing value inside an array, with the $.inArray method, it is returning an unexpected result. Example: I want to check if 1232 exists within Array...
asked by 09.02.2015 / 18:38
1
answer

Events and changes in a JSP?

Hello. I have a jsp being a chat (due to a restriction, I'm using Struts 1). In this JSP, I have the following div : <div class="conteudo" id="conteudo" name="conteudo"> . I need to return an automatic response (can be an...
asked by 18.11.2014 / 20:02
3
answers

How to filter a Text in a div with angle JS

The problem is to mount a filter in AngularJS to capture words, querys, within a text, for example as if searching a word in a craft. <div ng-app="" ng-controller="namesController"> <p><input type="text" ng-model="test"><...
asked by 30.01.2015 / 00:37
1
answer

Pass variable to modal

I have a modal that opens at the end of an action (Example: Disable User). I'm building the modal and wanted it to get the text present in an ajax variable. Verify code: $.ajax({ url: "desativarUsuario.php", type: 'post',...
asked by 10.11.2014 / 11:33
1
answer

Element added with jquery append does not trigger event

I've cloned a div that contains 2 elements: checkbox and button. The elements in the main div, source, fires events normally. It turns out that after cloning the div with the elements inside, the elements created do not fire any event. I trie...
asked by 03.12.2014 / 22:25
1
answer

Handle event with JQuery when form and link are generated automatically

JQuery does not work when the form or a link is generated automatically. Example below: This example works. <a id='btnTreatInvite' class='btn btn-primary btn-sm fa fa-check' href='#'>&nbsp; Aceitar</a> $("#btnTreatInvite"...
asked by 14.01.2015 / 03:09
2
answers

Catch URL link and modify CSS

I'd like to take the URL link and thereby modify the property of class flechaSubmenu from display:none to display:block . I thought of doing with CSS: .classe a[href^="/categoria/categoria2/"] { display:block; } What...
asked by 14.01.2015 / 14:15
1
answer

Recover disk image via callback

Well, I'm developing a feature that aims to upload an image (this step has already been done) and right after I "retrieve" it to select some color in it ( ColorPicker with Canvas ), just like this example . The problem is that I do not kno...
asked by 13.01.2015 / 19:04