Category Archives: jQuery

jQuery .closest(), .parent() or .parents()

In your page, you may have DOM trees, like <ul><li>…</li>…</ul>,  <tr><td>…</td>…</tr>, and so on. Sometimes, we want to find out who is the parent of current DOM elements. .closest(), .parent() and .parents() methods are similar in that they both traverse up … Continue reading

Posted in Computers and Internet, jQuery | Leave a comment

How to create Double click event on Multi-Selection Options

We have a small project need to add user into group, which is many to many relationship. So we designed two multi-selections to hold available users and existed group users. Each user is one option in the multi-selections, we want … Continue reading

Posted in Computers and Internet, jQuery | Leave a comment