Programmatically open chosen drop-down
Chosen is one of best jQuery library available to design HTML drop-down.
Here's how we can auto open chosen drop-down using small code snippet in jQuery. Below example uses the country drop-down.
Chosen is one of best jQuery library available to design HTML drop-down.
Here's how we can auto open chosen drop-down using small code snippet in jQuery. Below example uses the country drop-down.
Here is how to detect if user has opened site in mobile device or desktop. For this we're using JavaScript code which will be executed at client-side.
Chaos Tool Suite is one of the best API module to use. The module mainly provides API.
I've worked on ctools before to create multi-step form and show that in popup. This time I'm working on a project which has a Quiz in it which is built using ctools. The site was having a requirement of displaying Quiz form when user clicks on link from E-Mail.
So to display ctools modal on page load we've to add below jQuery Code:
The above code will find the HTML element i.e. div in our case, containing text as "John", and add underline to it.