У нас вы можете посмотреть бесплатно jQuery This Closest Find Stop Stop Stop | Single Function for Multiple Elements (Missing Piece) или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
I published a video on "Single function for Multiple Elements". I missed something very important in it. It is jQuery based toggle functionality that we created. On title click, card details area gets toggled. Previous Video Single Function for Multiple Elements at Same Page (this, closest, find, stop, execute | jQuery) • Single Function to Control Multiple Toggle... We have two implementations for this: First one is simple. On title area click, toggle details area. But its good if we want one toggle element at a page. Otherwise it's not good. To overcome this issue we get title element via this keyword. Then we get it's outer area (upper div, parent div) and find details area only inside current block. Then we toggle it. It works. But we still have a problem in our code. We are using toggleSlide from jQuery and its animation. If I click at title multiple times quickly and leave it, It keeps toggling back and forth unless number of clicks are processed by the code. We don't want this in our code. To overcome this, we will add another jQuery method to the chain. .stop() method This technique of using method after method like .closest().find().stop() at same element is called chaining. We added .stop() method to the chain. Now that issue is gone. So whenever you use animation make sure you use stop at the end as well. In this particulate case, remember this sequence: jQuery(this).closest().find().stop() ✅ How To Hide / Protect JavaScript Code - Techniques and Tools • How To Hide / Protect JavaScript Code | Ja... ✅ React JS UNDEFINED Solution | Reactjs Learning | Learn ReactJS & JavaScript Debugging Fast • How to Prevent TypeError Cannot Read Prope... ✅ Calculate Sum or Total from Values in Array & Array Object | Learn JavaScript | Reduce Method • How to Find Sum of An Array of Numbers in ... ✅ Get URL Parameters in JavaScript | URLSearchParams • Get URL Parameters in JavaScript | URLSear... ✅ DIV to PDF, Iframe to PDF using JavaScript Only (with CSS & Images Support) • DIV to PDF, Iframe to PDF using JavaScript... ✅ How To UnMinify JavaScript Minified Files Easily | Decrypt Complex JavaScript Code • How To UnMinify JavaScript Minified Files ... ✅ Toggle Class in Vanilla JavaScript | Learn JavaScript • Toggle Class in Vanilla JavaScript ✅ How to Execute a JavaScript File by using NPM • How to Run a JavaScript File using NPM ✅ Get User's Location (Country, State, City) with Free Unlimited API Access | PHP & JavaScript • Get User Location (Country, State, City) w... ✅ Replace jQuery with Vanilla JavaScript Code Easily | jQuery vs JavaScript • Replace jQuery with Vanilla JavaScript Cod... ✅ Toggle in Vanilla JavaScript • Toggle in Vanilla JavaScript | Pure JavaSc... ✅ MINIFY JAVASCRIPT FILES & FOLDERS in Multiple Ways (Command Line & Code Editor) • MINIFY JAVASCRIPT FILES & FOLDERS in Multi... ✅ JavaScript vs jQuery | Difference between JavaScript and jQuery • JavaScript vs jQuery | Difference between ... ✅ JavaScript Variable Redeclare & Reassign | VAR vs LET vs CONST | Practical Examples • VAR vs LET vs CONST | JavaScript Variable ... From jQuery Official Docs https://api.jquery.com/closest/ https://api.jquery.com/find/ https://api.jquery.com/stop/ Thank You! Channel Support 👍 LIKE VIDEO 👊 SUBSCRIBE 🔔 PRESS BELL ICON ✍️ COMMENT Channel: / webstylepress Website: https://www.webstylepress.com FaceBook: / webstylepress Twitter: / webstylepress Instagram: / webstylepress LinkedIn: / webstylepress GitHub: https://github.com/webstylepress #jquery #javascript #webdevelopment #js #webstylepress #methods #functions