Questions tagged as 'jquery'

2
answers

Do not allow repeating values in different DropDownList using jQuery?

I have 3 DropDownList where they have 4 items with the same valor (1,2,3,4). I need to respect that every DropDownList does not repeat the value selected in the others. Example: ddl0= 1 ddl1= 2 (não permitiria escolher...
asked by 17.12.2018 / 20:48
1
answer

jQuery DataTables numeric ordering in column containing hidden HTML

By using jQuery DataTables , we can indicate the desired sort order : $('#example').dataTable( { "aoColumnDefs": [ { "sType": "numeric", "aTargets": [ 0 ] } ] }); But if HTML is present, hidden or not, the sort order of numeric...
asked by 20.12.2014 / 18:26
1
answer

Show message where filter can not find result

I'm using the excellent Isotope plugin to filter items on a page. Filtering occurs according to the classes used in li that are referenced in option . When you select a filter, the properly referenced elements are displayed, an...
asked by 19.12.2014 / 18:09
1
answer

How to enable and disable automatic scrolling in a chat?

I'm having second thoughts about implementing this feature. I have a link that does this, type enable and disable automatic scrolling. For a better understanding, access JSFIDDLE below: JSFIDDLE EXAMPLE     
asked by 14.01.2015 / 14:35
2
answers

Stop ajax request

I have a page where an event grid is loaded in ajax. I also have a menu of actions on this screen. As soon as you access, the page loads (including the action menu), and the event grid, because it is heavier, loads separately. What is happ...
asked by 16.12.2014 / 20:47
2
answers

UPDATE PHP with JavaScript

I'm trying to perform UPDATE, but it gives the following error:    Notice: Undefined index: id in C: \ wamp \ www \ SitePHP \ base \ updateFuncionario.php on line 4. Follow my code function function atualizar(id){ if(confirm("Deseja...
asked by 23.11.2017 / 20:21
1
answer

How do I set cookies and set expiration time?

I have a div where I search only logged in users, in it I'm displaying the users but every update is inserted new records, gave me the hint of using cookise more never worked with it. the following code is giving the error Warning: Can not modif...
asked by 10.02.2016 / 01:07
2
answers

Modifying Canvas in real time

How can I use the tag canvas of HTML5 and make this change in real time as I enter the data in input ? I already made form and put tag canvas on the page. I would like to know if in%% of% it is possible to change the...
asked by 23.04.2015 / 17:49
1
answer

How to use '.each ()' in a variable to get multiple '.attr ()' from a list?

I'm starting to develop a video gallery where I'll upload upload to GitHub for anyone who wants to download and use it. I have a list as follows: <ul> <li><span class="everyVideo ytVideo" data-videoID="6AmRg3p79pM">V...
asked by 12.09.2016 / 03:39
3
answers

Limit characters in div with contenteditable

I have a div with contenteditable="true" and I would like text that exceeds 10 characters to be taxed with background red, as in Twitter. My main question is how to only tax the surplus text, if you have to do this with only CSS...
asked by 30.07.2016 / 20:29