Questions tagged as 'javascript'

2
answers

Tooltip Bootstrap 3 disappear when I click on another

I have 3 tooltips. I want them to appear in the click, so I used the following: $('[data-toggle="tooltip"]').tooltip({ trigger : 'click' }); So, when I click on the first one, for example, it displays the tooltip. However, I...
asked by 26.05.2017 / 19:42
5
answers

Hover only in some columns

I have a table with 6 columns, but I just want to give hover in the first 4 columns. Is it possible to do this? I'm using MVC 4 and bootstrap I'm already using a method in Jquery : $(".table tbody tr").hover(fu...
asked by 03.04.2014 / 20:30
5
answers

Reading and manipulating json data using jquery

They say Json is simple. But I'm sorry and very sorry. Next code: $(document).ready(function(){ $.get( "http://meusite.com/", function(data) { console.log(data); }); }); the result the console.log is [ {"id":"769",...
asked by 30.03.2016 / 21:50
4
answers

How do I display parts of a page only after loading all of the site content?

I wanted to know how to do a JS, to display the contents of certain parts of a website, only after all the content has been loaded, this includes, JS, Images, CSS and Some external data like the facebook plugin return. .. It is resolved by co...
asked by 25.03.2014 / 13:41
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

Write current time in a .txt file

How to make an online post of a variable in a given TXT? I tried the following, but it did not work: function post(theUrl) { var xmlHttp = null; xmlHttp = new XMLHttpRequest(); xmlHttp.open( "POST", theUrl, false ); xmlHttp.se...
asked by 28.05.2014 / 16:57
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

PHP / HTML / CSS and JAVASCRIPT script block

My question may be silly, but I really do not know and can not find it on the net. I would like to add block scripts to my application, and in that block the script highlights functions, variables, and so on, just like in an editor itself....
asked by 11.01.2017 / 18:17
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