jquery

change the colors of the cells in the table

There is a table, you need to set the color of the cells in the column, so that the color changes depending on the value in the cell.similar to the heat map! color range: minColor: '#f9f9f9 'to maxColor:' #98c76b '

How do I get the id of the elements located in the div?

There is such a div <tr><td <div ID="stroka" class="sortContainer"> <div id = "pol_3" class= "str">< ... "str"><\div> </div></td></tr> How do I get the id of the internal div's, in the order they stand?

Get the difference between two dates in jquery days?

I have two dates in the format 20.02.1992, how can I calculate the difference in days between them?

How to define a css event

Good time of the day there is a situation that it is necessary to determine whether an event has occurred this event takes pl ... ent-ok').css('display','block')(function(e) { alert(ok); }); It is clear that nothing is happening why don't you tell me ?

jQuery Validate plugin-the password rule does not work

I want to add some password requirements: The password must be at least 8 characters long and no more than 14 characters lon ... " class="form-control" placeholder="Password *" required> </form> But the pwcheck method doesn't work at all(

Pop-up modal window when you log in to the site

Hello, how do I make a pop-up modal window when logging in to a site? For example, as on ruseller.com - it pops up there afte ... arious3" href="http://google.ru">google</a> In this case, how can Google run automatically when you visit the site?

Checking max and min js

Hello. I have a script that sends an email. function sendForm(id){ var form = f('cForm'+id); var res = { ... that are specified in this field. <input class="z" type="number" size="25" min="22" max="<?php echo $max;?>">

Php Language Selector

We have such a selector, When you click on the flag, for example, #US is added to the domain. Example - site.com/index.php ... ( or make another file,), I'm just wondering how to do this substitution of the language. What is used in this situation. ?

Simulating a click on an object in canvas JS

I'm trying to simulate clicking on an object in canvas, but I can't do it. I tried many different options here is one of them ... he console writes true, but the canvas itself does not respond to the event in any way. Could you help me solve this problem?

Correctly build the logic in each

Tell me how to build the following logic correctly: There are many .row strings with div nested in them. div ' s can be 1, ... -4 game-main"> <div class="promo-game-item"> <div class="game-title"></div> </div> </div>

How to voice the text on the site?

I can't find a suitable option. Help me if you know. I need to voice the words. That is, when the user clicks on the button, only one word is voiced. If anyone knows how, please share an example PS: voice acting is required in English.

Bulk deleting and adding a css class in a group of js elements

You must add the uk-hidden class for all elements with the continue_text class and simultaneously remove the uk-hidden class ... even the same uikit. You can see how the slider widget itself works here https://dizajn-nogtej.taisiavlasova.com/#my-id-03

jQuery does not connect to the site

I'm trying to connect jQuery to an html site. Connecting google CDN <html> <head> <meta charset="utf-8"> ... ; And when I go to the site, I press f12, the console does not give any data. What's wrong, why can't I connect the js file?

Self-calling functions in jQuery(function() {})

Can anyone explain what self-calling functions inside jQuery(function () {}) are for? As far as I understand, they are genera ... appear in the document object variable). Question: does self-calling functions inside jQuery (function () {}) make any sense?

A modal window like W3schools doesn't work

I tried to make a modal window for the example , but nothing worked. I will be grateful to those who will open my eyes to the ... <div class="popup-inner"> <span class="close-button">X</span> <p>My modal</p> </div>

Tell me how to make such a running line?

Please tell me how to make a running line like in the picture, which runs around the element, for example, around the pictu ... ion of the running line, in the background of the stock fades a little and it runs, for example, around some picture. Thanks.

Store a JSON object

Please tell me if the received JSON object can be stored after its first processing by the handler, so that when some event occurs, this object is available to me (as a global one). Can I make the object visible while the page is not overloaded?

Chosen add option

$(document).ready(function() { $(".chosen-select").chosen(); $('.chosen-select').trigger('chosen:updated'); }); ... there is no option in select when searching and selecting from the list, add a new option from what you entered in the line.

Good JavaScript code

What is the best way to name variables and functions? How do I comment on the code? What is better not to do? ... In other ... that will make it easier for the code author and other programmers to support the code. Interested in JavaScript and jQuery.

How to combine the inputmask plugin and the forbidden characters check in one input for email, which will show the wrong character and immediately remove it

There is an inputmask plugin that prohibits any input except for certain characters and creates a mask '_ @ _ . _' You need t ... mail" type="text"> On my test site, 2 inputs, one with a script, the second with a mask https://tronenko.pp.ua/mail/