I am refactoring the CSS of a system function and to treat the CSS property and not a string I changed this line of code: (from the 1st way was working correctly)
var ultimaMensagem = $("#box-confirm:not([style*='display: none;']),#box-erro:n...
How to make a certain HTML before another div? I tried using prepend but it poe at the beginning inside the div but I want it to put above / before and out of it, using prepend it looks like this:
<div class="pai"><div&g...
The variable role gets a new value in every Loop , when it is inside $.getJSON it takes the second value of the array and does not change anymore. There are two console.log(); in the code, I put their return next to it...
I'm having an unexpected behavior with unique of jQuery.
The following command:
var x = [1,2,1,2];
var y = $.unique(x);
document.write(y);
In Chrome it results in 1,2 (which is correct), but in Firefox it appears 1,2,...
I have a JSON value that I want to sort it in descending order (I think in the example you will understand).
Example:
var json = {
'um': {
'cont': '5'
},
'dois': {
'cont': '10'
}
...
};
So in this case...
I need a help with the following problem, I have the following HTML, which is part of an accordion
<div id="accordion2">
<h3 class="btn-sub-main"><a>Banho</a><div class="seta-btn-sub"></div></h3>...
I searched the internet for ways to join Stylesheets CSS and Script Sheets JS in an automated way, but did not work well.
I have about 17 Style Sheets and 15 Scripts, if I do it manually I will be "crazy" and it will take a...
Hello,
I'm creating a Javascript system, where I need a button to show only the paragraphs with a given class in a div with hidden content.
Example:
<button id="btn1">Abre classe1</button>
<div id="conteudo">
<p...
This is the following I am using a site table: DataTables and what is happening is as follows:
AsyoucanseethetextgetsallinlinewhichmakesitdifficulttoreadbecauseyouhavetoscrollmydoubtishowdoImakeautomaticparagraphsorthatthetablebreakstheline.&...