Turn your windows laptop to wifi hotspot

open command prompt as administrator..


netsh wlan show drivers

netsh wlan set hostednetwork mode=allow ssid=myHotspot key=sapient4$

netsh wlan start hostednetwork

netsh wlan stop hostednetwork


get regex classnames using javascript

Thanks to my friend priya for saving my time with simple solution.


giftcard1 (1)


To get all classnames that starts with giftcard , you can achieve by



Say , your DOM has like

 giftcard2 (1)


Then you achieve by following

document.querySelectorAll('[class*="giftcard"] )