jquery

How to make a picture in a hexagon and text in an svg shape?

This is how you can save it as a vector You need to make up as in this layout How can this be compared with a picture in a hexagon and with text?

Passing values to input

Let's say there is a search input in which we enter some value (let's say 1). After confirming the input, the result 1,2,3 is ... itch ($_POST['action']){ case "showData": if (isset($_POST['contract'])){ echo $ED; }break; };

Make a cross-domain request to a third-party server

Tell me, please, how to make a cross-domain request to a third-party server on jQuery??? I tested it on my hosting, and if I ... tand something, but I would like to know how to make a request without writing such a line in .htaccess, and is it possible ?

Output the frame with the form by editing the HTML field.

We need a script. There is a page https://ru-eshop.oriflame.com/iframe/Consultant/OnlineQuickRegistration.aspx we need to dis ... "Sponsor Number" should be blocked for editing and the value that we want should fit there. I can't implement it in jquery.

How to change the zoom level when moving the map in the yandex maps api.

How to change the zoom level when moving the map in the yandex maps api. There is the following code: destinations = { ... .end() .appendTo(menuContainer); })(item, destinations[item]) }

How do I calculate the number of IDs in a div, and output this number?

I have div, inside which there are many divs, and there are some with id #red, they are scattered. You can somehow calculate ... lt;div class="divTableCell">&nbsp;</div> </div> </div> </div> </div>

Bootstrap 4 collapse inside the dropdown-menu and return to a higher level

There is a small bootstrap 4 menu with multiple levels and collapse inside: $('.dropdown-menu').click(function(e) { ... strap 4 ? How to properly implement the "back" button so that you can not close all the menus, but only return one level up?

How do I click a button to go to another page?

There is a button <div class="field"> <button name="write" class="j-submit-report">Написать отчет</button ... this $('#write').click(function () { header("Location: report.php"); }); But it does not work, tell me what is wrong.

Jquery mask resets the form when sending an incomplete number

Form: <section id="callback_header_js" class="form_holder clear form_holder_js"> <form id="header_form" action="/ ... input becomes empty. How do I not reset the field when the value is entered incorrectly, but display an alert with an error?

Tracking changes to input in jQuery

Hello everyone I'm starting to slowly learn JavaScript and jQuery. There was a problem that I can't solve for several hours. ... type="submit" value="Результат" id="btn"> </form> <div id="rezult"></div> </div>

Problem with if-else in jQuery

Hello everyone I'm just starting to learn JS and jQuery. Now I'm working on making sure that when you click on a block with t ... gt;</script> <script src="./js/script.js"></script> </body> </html> Thank you for your help!

addClass() And removeClass don't work()

I want to make it so that when scrolling, the header is fixed at the top of the page and decreases, but webstorm does not see ... $('#header').addClass("sticky"); } else { $('#header').removeClass("sticky"); } })

How can I determine the number of an element in the selection in jQuery?

For example, there is a selection of a list (li tags). By clicking on an element (li), we catch it using this, and then how do we find out which element in the account we clicked on?

The simplest AJAX application

Let's say we have a simplest application that gets a number through a simple form, considers its factorial: class Handler(web ... }); return false; }); }); Here is the script that comes with the library jQuery in the static folder.

Error: jQuery. Deferred exception: "function name" is not defined ReferenceError: "function name" is not defined

Is there a way around this error? jQuery.Deferred exception: getData is not defined ReferenceError: getData is not defined P ... on(){ getData(); }); <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>

Error in the code: ReferenceError: getElement is not defined

I have an error in the code, tell me what is wrong with the variable ? function setImage(elementId, strImage) { var image ... rs at this: ReferenceError: getElement is not defined. Error directly in the line: var imageElem = getElement( elementId );

jQuery / JS how to get id from child elements

<div class="products"> <div class="product" id="1"></div> <div class="product" id="2"></div> ... ;/div> How can I get id and save all objects with the product class from the parent with the products class to an array?

Find out the coordinates of the city center by name

Hello everyone interested in the following question there is a variable in which the name of the city is entered, for example ... ить кординаты с использованием переменной city и занести их в переменные шырота и долгота }); Help who faced a similar task

How do I change true to false when a block is clicked?

Can you tell me how to change the value in a javascript file from true to false and back when clicked? Here is a sample: uche ... var swiper = new Swiper('.swiper-container', { pagination: { el: '.swiper-pagination', dynamicBullets: true, }, });

Working example of displaying a Youtube video in FancyBox

Who can share? Here is the code I have displays the video not in the center of the screen, and the iframe of the video witho ... }, title: { type: 'inside' // to append the html } } }); });