Questions tagged as 'jquery'

1
answer

Dynamic list ordered with search data

I have a problem to display data coming from a database in an orderly way, I have a field for the user to enter with the ID and it returns the user name, and when it is looking for more users the previous ones should hold. <?php $a = $_...
asked by 17.10.2017 / 20:04
2
answers

How to add the value of the id and text attribute of a select from the click event of a button?

I need to add in the object Select o Id and Texto from this function: //Adiciono o item retirado da table html para o objeto html Select $.each(_arrDescricao, function (text, key) { var option =...
asked by 18.10.2017 / 15:16
2
answers

How to Change IFs to For

I have 3 dropdowns with equal values (0,1, 2 and 3). Where 0 is 'Select a collaborator' 1 is 'Fábia' 2 is 'Helio' 3 is 'Sueli' I have to select a value in one of the dropdowns and disappear from the others. Example: I select Sueli in the first D...
asked by 16.10.2017 / 18:09
3
answers

Add button to add fields

I'm trying to implement a button to add extra fields, in which case I'm creating an activity report where it contains 5 fields. When the button is clicked it adds another 5 of those same field. I currently have: JavaScript $(function (...
asked by 16.10.2017 / 21:00
1
answer

Get the href link in the href itself

I have the code below <?php $paginaCorrente = parse_url($_SERVER['REQUEST_URI'], PHP_URL_QUERY); ?> <ul class="menu"> <li><a href="?l1" <?php if ($paginaCorrente=="l1") echo class='linkVisitado'";?>>Link 1</...
asked by 27.09.2017 / 14:17
4
answers

Count options from a select

I need to count the options of a select . If you have only 1 option, submit the form. How do I do this in jQuery?     
asked by 09.11.2017 / 20:53
1
answer

How to make element minimized or hidden in site?

What is the name so I can search as it does, of those items in html that appear minimized on the page. for example: In an html site in your home on the right side near the window bar has a cropped image that when you click on it it slides to...
asked by 08.11.2017 / 19:15
1
answer

How to check if all fields with 'required' were filled with form.submit ()?

The application loads data via ajax dynamically according to the item selected by the user in a select. Depending on the option selected it may load another select or some inputs to be filled, and all data has the required attribute as all are...
asked by 21.09.2017 / 07:38
2
answers

Change CSS with jQuery

I have already changed css with jQuery, but I would like to test a feature, in onclick it add a css but a :before field how could I do that? Working Code $j("#nome-login-mobile").click(function(){ if ($j('#options-menu').is(':v...
asked by 21.09.2017 / 18:43
1
answer

How to add social buttons

How can I implement social networking buttons in my application ( FaceBook, LinkDin, YouTube ) HTML/CSS/JavaScript ? Most of the example I found are in PHP     
asked by 09.10.2017 / 15:49