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

Advertisements

get regex classnames using javascript

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

Example:

giftcard1 (1)

 

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

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

 

Say , your DOM has like

 giftcard2 (1)

 

Then you achieve by following

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