jQuery code snippet to get id of visible element.
Use the visible selector to get the visible element.
Use the not selector to get the elements that are not visible.
For Example, to get the id of the form that is currently in view.
var $visibleForm = $('form:visible'), formId = $visibleForm.attr('id'); console.log(formId);
Calibre is a fully-automated tool suite for auditing & improving performance. Here's how to use it to detect the impact of running...
Building a Multiplayer TicTacToe Game with Meteor
Paul Orac shows you how to create a realtime, multiplayer version of tic-tac-toe using Meteor. Learn to quickly prototype full-stack...
Introduction to Grunt.JS
A quick introduction to Grunt
Visualizing Data with D3.js
Forms with React and Redux
Easily create forms with Redux Form
Thomas Greco, Jul 12