Questions tagged as 'jquery'

2
answers

Remove attribute onclick by JavaScript

Good afternoon, I would like to know how to remove the onClick from the input using the very function that is onClick. For example, in my case I have the following input: <input type="submit" class="adduser" onClick="addUser(valor);" val...
asked by 28.07.2016 / 19:31
3
answers

How to add class to all li, less than what was clicked

I want to add a class hidden to all li , but not to the li that was clicked. How can I do this using jQuery? jQuery(".render-menu li").on('click', function() { alert(); jQuery(".render-menu").not($(this)).parent()...
asked by 21.09.2018 / 20:24
6
answers

Regular expression to get the background-image url

I'm not very good yet at regular expression. How could I do to capture only the contents present within the% excerpt of url() ? Example: $elemento.css('background-image'); // "url(imagem.png)" Or else: $element.css('background-im...
asked by 28.10.2015 / 19:33
3
answers

Compare inputs with the same class and without id

Hello, I have the following structure <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script><table><tr><th>Valor1</th><th>Valor2</th></tr><tr><...
asked by 16.04.2018 / 20:00
2
answers

Transition time does not work

I gave 3 seconds to make a more sensible transition but it does not work, it's very rough: $(function(){ var status = 0; /* INICIA MENU-GRID */ $('.menu-grid').on('click',function(){ console.log(status); if(status...
asked by 20.12.2016 / 03:28
3
answers

THIS object in conflict between jQuery and ECMA6 class

How do I resolve the conflict between this of a jQuery loop performed within a method of a class in javascript (ECMA6)? Example, metodoUm loops using jQuery and for each iteration of the loop, calls metodoDois passing the...
asked by 06.08.2016 / 01:59
3
answers

Selecting the VALUE of a select with javascript or jquery [duplicate]

Well, I have the following problem: I need to select the value of a select in html to execute a loop if in javascript or jquery , how to do? <select class="input"> <option default disabled="d...
asked by 25.10.2016 / 14:08
2
answers

How to transform text into input text when clicking?

So, I need to transform a text that is inside an HTML tag into input text to edit it. What better way to do this? Example: link     
asked by 27.03.2017 / 09:10
4
answers

Hover does not work in div

I have the following HTML code: <li style="background-image: url(fotoSYS)" class="produtos f-left margin-right-30 margin-top-30"> <div style="background-color:codigoSYS"class="marcador"></div> <h2>tituloSYS</h2&g...
asked by 29.08.2014 / 16:32
4
answers

Lock CTRL key on All Browsers

I want to Protect my Content. I've already "Destroyed" the Right Click on my Site, But now I would like to lock the CTRL key. Because it gives rise to copy and paste commands, and I do not want to use it on my site. Is there any code to override...
asked by 22.05.2015 / 02:59