Can anyone please tell how how can I create a search bar just by displaying the search icon that drops down when clicked on the icon just like in this website www. cottonsjaipur .com/ .It would be a great help.
- Create/add a STRIPE onto the top of your page (mainpage or header, its on your choice)
- The ICON-Button should be placed in header-section, so it will be shown on every site which has an visible header.
- You will also need to add a close-button
- CODE should look like that…
$w.onReady(()=>{
$w('#myIconButtonIdHere').onClick(()=>{ //<--- right ID of IconButton here
$w('#strip1').show() //<----right ID of the strip here
});
$w('#closeButton').onClick(()=>{
$w('#strip1').hide() //<----right ID of the strip here
});
})
Thankyou so much it worked. Appreciate a lot!