LATEST ARTICLES

Submitting an Ajax form in Laravel

0
Let's create a form without reloading the page on the Laravel framework using ajax technology. First, let's write the routes in web.php // New page with form - output Route::get('/feedback', array( 'as' => 'site.index.feedback', 'uses' => 'IndexController@feedback' )); // Ajax...

Find phone numbers in divs via JS and make them links

0
Suppose there is an html layout where you need to make all phone numbers links and add a class to each link: <div> <ul> <li>+375007778899</li> <li>+375007778822</li> <li>+375007778811</li> </ul> </div> Let's run the js script using jQuery: jQuery(document).ready(function($) { $('.phones').html( $('.phones').html().replace(/(+d+)/g,'<a href="tel:$1">$1</a>') ); }); After executing the...

WooCommerce Price Filter – Trigger When Slider Changes

0
So that when filtering prices in the WooCommerce CMS online store of the WordPress standard filter system, automatic filtering occurs without clicking a button, you can insert this js code into the file with...

A simple script for tabs in jQuery

0
Let's look at a simple tab script written in html, css and js (jQuery). You can implement this tab script into any CMS system or any framework. HTML code: <!-- HTML BLOCK --> <div class="tabs-wrapper"> <div class="tabs"> <span class="tab">Tab...

Outputting information from ACF fields in WordPress shortcode

0
Let's look at how to display information from ACF (Advanced Custom Fields) fields via the Wordpress shortcode anywhere on the site. Let's display a field of type "Repeater". For example, we have a task...