Questions tagged as 'jquery'

3
answers

Problem with window.open () JS

I have a table composed of 3 columns: link, status, action. In the action column, I have 2 links that will serve as "buttons": VIEW & TO DISCARD Thistablehasinaverage+100lines...IneedtheuserclickonVIEW,togetthevalueofthecolumn"Link" in th...
asked by 23.06.2015 / 20:50
1
answer

Check if an element exists with switch

Hello, how do I do a check and check if a given element exists using switch?  To be more specific, I'm trying to use this code: var forumversion = function() { invision = jQuery('#ipbwrapper').length ? "invision" : "error"; phpbb2 =...
asked by 18.04.2014 / 00:08
1
answer

Take action when pressing the key

I need that when the user presses the DOWN key of the keyboard, it goes to a div, in the same way as with scrollTop. Has anyone done anything like this using Jquery? Would it be something like this? $(window).trigger('keydown', function (e)...
asked by 17.04.2014 / 03:48
1
answer

jQuery does not return to HTML

I can not write the return inside the HTML element on success, it writes console.log , but not html. Code: $(document).ready(function () { $('.comentarios').click(function () { $(this).siblings('.texto').prepend("<div...
asked by 27.04.2016 / 14:14
1
answer

How to use ajax to do select where

I need to bring information from the database to a modal , when I click on the button it should open the modal and bring the infos , the id of the registry can be written in tag or in any other way? But basically this is...
asked by 28.04.2016 / 00:48
2
answers

Media Queries for Java Script - What is the error in this syntax?

This is the first time I try to apply a media queries rule in java script, and since I am a beginner, I believe something in this syntax is wrong, since the only function that is working is the second one (visible: 3) and in all viewports....
asked by 19.04.2016 / 16:39
2
answers

Pick up information from the form and send it to email

I have a form that I will have to get the information typed and send to my email via java script or jquery but I do not know how to do this until the moment I just validated my form follows the code of my form: .corpo-1 ul li { disp...
asked by 27.05.2015 / 16:30
2
answers

setTimeout or setInterval?

I'm using a tooltip plugin in jQuery to modify attributes title="" of various classes. It was working fine until I realized a problem - I am using a button that changes class as it is clicked, and when this button changes class t...
asked by 26.05.2015 / 19:28
1
answer

How to leave the first option disabled and selected?

How can I start a selectbox of type select2 with the first option selected disabled? HTML: <div class="form-group"> <select name="tipoOperacao" id="tipoOperacao" class="selectTipo2" style="min-width : 100%"> <option...
asked by 23.04.2015 / 13:02
1
answer

Get the value of 'radio' with javascript

I'm trying to get the value of input radio , but if I do: document.querySelector('input[name="group1"]:checked').value; It returns me " ON ". Does anyone know what can it be? I was expecting it to return me Red , Yellow o...
asked by 05.11.2018 / 15:09