We usually get the width width of a div or any other tag within the page.
How can you get the width of a plain text? For example:
Um texto
How do I know the width of this text in the JavaScript page?
It is no...
I have the following code.
Html:
<div>
<textarea name='arraytextArea[]'></textarea> <br>
<input type="radio" name="grupo1" value="Valor1"><span>Valor1</span>
<input type="radio" name="grupo1"...
I have a code that accesses the database every second and returns me the number of rows in a table, the problem is that an abusive number of requests and queries are made in the database to monitor changes in the rows, I need of something that m...
Help me with a quick question.
The jquery resize identifies when the browser window changes and triggers an event. So good.
But is there any way for me to know when an element changes?
When to resize it?
In this case, resize does not he...
I'm trying to make a language filter where it checks after every key pressed if there is any unacceptable word.
An example, this array ['insulto1','insulto2','insulto3'] .
How do I check if any of those words exists in what the user...
I have a field inside a table, where the phone backs up from the database, in a format string (xxx) xxxx-xxxx . I want the moment I click on the phone, open the option to choose which program I will use to make the call. (for example skype...
How can I save an item via jquery to be used later?
I have the following structure, where I retrieve the item from an onclick event of a button, retrieve the row of the table to which that button is associated, and display the information for...
The above code almost works, just can not paint in the first column, how can I solve this?
$('table').on('click', 'tr', function () {
if ($(this).hasClass('table-info')) {
$(this).removeClass('table-info');
}
else {...
I created a script to enable and disable fields on my page but they are not running.
$(document).ready(function() {
$("#EditarDados").click(function() {
// habilita o campo
$("nome").prop("disabled", false);
});
$("...
I have 2 date fields and I will use those dates in a select and I would like a "browse" button to appear only when the two fields are filled in, it follows the current code:
<form method="post" action="">
Início do períod...