html Archives - Magesan

Tag: html

How to write jquery in phtml file in magento 2

We need to write jquery sometimes in phtml file for special requirement. For that you need to define jquery in require function in script tag for using jquery within phtml file.Put below script in phtml file and replace console.log with your custom code.