Questions tagged as 'jquery'

4
answers

How do I open and hide fields on a form by check on button radio?

I have a form and in it I have two radio fields that, depending on the choice, should open other fields to fill. Thanks     
asked by 04.03.2015 / 15:27
1
answer

Fill table with DB data

I'm having a problem adding the designation of an article through the code. I have the following: HTML <table class="table table-striped table-bordered" id="vendaTabela" width="100%" > <thead> <tr> <th dat...
asked by 26.02.2015 / 17:58
2
answers

Find div with attribute value equal to that selected with jquery

I have several buttons with data-numBtn numeric and with value equal to the div (with data-slide attribute) that it controls. In short, I liked that when I clicked for ex: .btn with data-numBtn="3" something happens (eg fad...
asked by 21.11.2014 / 12:46
2
answers

How to open a page in a new tab without leaving the current page

What I want is something that works like target="_blank" , but I do not want to leave the page where the link was clicked. That is, clicking on the link would seemingly nothing change, keeping the current page view, however, a new tab w...
asked by 15.11.2014 / 00:34
1
answer

ScrollTop after the page has already been loaded

I want to do scrollTop after I click a button. Only not on the page that I am, but on the page that will open. My HTML: <a href="/clinicas" class="saibaMais cp margin-top-40 margin-bottom-25 f-left unidadesClick"> <div class="s...
asked by 02.12.2014 / 11:58
2
answers

Jquery or pure JS + CSS3?

The CSS3 has gained so many utilities that previously were only possible with programming, for example: Media queries, fb, keyframe, transition etc ... So what are the advantages, disadvantages and when should I use?     
asked by 29.11.2014 / 03:26
1
answer

How to change the src of a script using jQuery

How can I change the value of the href attribute of a <link> and src of a <script> . Real problem, I have two screens that are in different levels (different folders), in which both are accessed by the...
asked by 31.10.2014 / 17:35
1
answer

Instantiate a standard global function to call functions

I would like to know how I can create a global variable (or global element, I do not know how to call it) like in several plugins I see. Jquery example where to call any function related to it I just have to instantiate the symbol # or ca...
asked by 31.10.2014 / 19:24
1
answer

Get values with jQuery

I have a following field, <input name="dados[<?= $i ?>][quantidade]" class="quantidade" type="text" value="<?= isset($dados['quantidade']) ? $dados['quantidade'] : '' ?>" id="quantidade"/> And I have a modal that when I c...
asked by 06.11.2014 / 15:01
2
answers

square div with angle of 45º

The question is complicated and I believe the answer will be too. I can not explain very well what I would like to do (and I do not even know if there is any), that's exactly why I've put images to exemplify better. Well, assuming I have 9 DI...
asked by 08.10.2014 / 03:02