Questions tagged as 'jquery'

3
answers

How to create a click event that is only called when clicking off of a div?

I need to click on a div (it's a register), it will close. What selector should I use so that by clicking anywhere outside the div this div closes? $(????).on("click", function(){ $('div').hide(); }); If you click on any par...
asked by 07.03.2014 / 22:17
1
answer

How to mix two colors using JavaScript?

There are two fields where the user informs a color in hexadecimal. When you click mix colors , a calculation must be done in JavaScript and this will have to present a painted picture with the mixed color and the result in hexadecimal....
asked by 12.05.2014 / 06:37
1
answer

Colapse Menu after page refresh with localStorage

How can I close a menu and keep it closed after the refresh of the page using jQuery only? It would be something like in this link . When you click the menu, the menu is reduced and so remains after the refresh page. When you click the...
asked by 16.04.2014 / 23:34
3
answers

How to use a different logo if the default does not exist?

I wonder if there is a solution to the following problem, If there is a company logo, consider it and apply it to css, if there is no use of logo_default, then I could control versions and my users could customize the application without fear...
asked by 14.05.2015 / 15:08
3
answers

What is the function of this 'e' that is passed as a parameter?

The example I'm going to show here is just to illustrate. I would like to really understand how this e works, which is usually passed as a parameter in several functions, that encounters in codes out there. $(".fotos").each(function...
asked by 25.09.2015 / 16:10
1
answer

Scroll bar on a table with bootstrap

I have a table, where I load information from the database into it. It has two columns (CNPJ and Social Reason). The table I mounted with bootstrap. I would like it to have a maximum height and create scrollbar (I find that difficult), as I do n...
asked by 27.06.2014 / 15:01
5
answers

How to create buttons to increase / decrease font?

I would like to implement accessibility features on the company website that I work with. I was able to implement the contrast button, but I'm having a hard time doing the increase / decrease and default font size. Testing new projects the...
asked by 08.12.2015 / 19:59
3
answers

Script is not working in IE

I'm using this script in Chrome and it works fine. But IE 8 or 9 does not work. I put a debugger and an alert to debug, but it does not even enter the function. $(document).on("mousedown", '#CentroCusto_new option', function (event) { aler...
asked by 12.03.2014 / 21:41
2
answers

Create a Vertical Label or Input

I need to create a LABEL or an Input so that the typed text is Vertical, as follows: M E U T E X T O Would It Be Possible Anyway? This is required for the printing of banners in this format.     
asked by 19.07.2016 / 18:11
3
answers

How do I add jquery library with javascript?

I would like to know how to load the jQuery library with pure Javascript and run something simple with jQuery after its loading? My code looks like this: function colocaScript(){ var scriptJquery = document.createElement('script')...
asked by 19.02.2014 / 14:44