Questions tagged as 'jquery'

3
answers

Get the width 'width' of a text?

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...
asked by 24.02.2018 / 01:59
2
answers

Concatenate Radio Elements

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"...
asked by 28.02.2018 / 23:33
2
answers

How to monitor changes in the database without making abusive queries

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...
asked by 10.01.2018 / 01:38
1
answer

Resize for elements and not browser window

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...
asked by 12.01.2018 / 20:50
2
answers

See if any of the array value exists in a string?

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...
asked by 12.01.2018 / 22:00
2
answers

Problem in the hyperlink for linking to phone numbers

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...
asked by 11.01.2018 / 17:12
1
answer

Retrieving item in another function with jquery / js

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...
asked by 28.12.2017 / 15:06
1
answer

Bootstrap - Paint a whole line and less a specific column

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 {...
asked by 03.01.2018 / 04:20
2
answers

Enabling and Disabling Input

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); }); $("...
asked by 15.06.2018 / 00:43
2
answers

Appear button after filling two fields

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...
asked by 12.12.2017 / 17:46