Skip to main content
Home
Toggle menu

Main navigation

  • Home
  • Blogs

jQuery

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.
  • Read more about Programmatically open chosen drop-down

How to detect Mobile device using JavaScript

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.
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
  • Read more about How to detect Mobile device using JavaScript

Display CTools modal on page load - Drupal 7

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.
  • Read more about Display CTools modal on page load - Drupal 7

jQuery - Find element by Text

The above code will find the HTML element i.e. div in our case, containing text as "John", and add underline to it.
  • Read more about jQuery - Find element by Text

Monthly archive

  • March 2019 3
  • September 2018 1
  • July 2018 2
  • April 2018 1
  • August 2017 1

Pagination

  • Next page ››
sfy39587stp18