| jquery Programming Glossary: indxhow to store an array in jquery cookie? http://stackoverflow.com/questions/1959455/how-to-store-an-array-in-jquery-cookie  remove function val EDIT Thx to Assef and luke for remove. indx items.indexOf val if indx 1 items.splice indx 1 .cookie cookieName.. to Assef and luke for remove. indx items.indexOf val if indx 1 items.splice indx 1 .cookie cookieName items.join ' '  clear.. for remove. indx items.indexOf val if indx 1 items.splice indx 1 .cookie cookieName items.join ' '  clear function items null.. 
 Jquery - save class state for multiple div #'s to a cookie? http://stackoverflow.com/questions/2101417/jquery-save-class-state-for-multiple-div-s-to-a-cookie  el Update the Cookie function updateCookie el var indx el.attr 'id' var tmp hidden.getUnique if el.is ' hidden' add.. ' hidden' add index of widget to hidden list tmp.push indx else remove element id from the list tmp.splice tmp.indexOf.. remove element id from the list tmp.splice tmp.indexOf indx 1 hidden tmp.getUnique .cookie hidden hidden.join ' ' expires.. 
 How to make the value of one select box drive the options of a second select box http://stackoverflow.com/questions/2603539/how-to-make-the-value-of-one-select-box-drive-the-options-of-a-second-select-box  .category ' options ' '#cat' .html c .change function var indx this.selectedIndex 1 if indx 0 '#items' .empty .attr 'disabled'.. .html c .change function var indx this.selectedIndex 1 if indx 0 '#items' .empty .attr 'disabled' 'disabled' return var item.. var item ' option Select an item option ' for i 0 i menu indx .items.length i item ' option ' menu indx .items i .name ' options.. 
 how to store an array in jquery cookie? http://stackoverflow.com/questions/1959455/how-to-store-an-array-in-jquery-cookie  array in jquery cookie .cookie cookieName items.join ' '  remove function val EDIT Thx to Assef and luke for remove. indx items.indexOf val if indx 1 items.splice indx 1 .cookie cookieName items.join ' '  clear function items null clear the cookie... cookieName items.join ' '  remove function val EDIT Thx to Assef and luke for remove. indx items.indexOf val if indx 1 items.splice indx 1 .cookie cookieName items.join ' '  clear function items null clear the cookie. .cookie cookieName.. ' '  remove function val EDIT Thx to Assef and luke for remove. indx items.indexOf val if indx 1 items.splice indx 1 .cookie cookieName items.join ' '  clear function items null clear the cookie. .cookie cookieName null  items function.. 
 Jquery - save class state for multiple div #'s to a cookie? http://stackoverflow.com/questions/2101417/jquery-save-class-state-for-multiple-div-s-to-a-cookie  'add' var el div# this .attr 'name' el.toggle updateCookie el Update the Cookie function updateCookie el var indx el.attr 'id' var tmp hidden.getUnique if el.is ' hidden' add index of widget to hidden list tmp.push indx else remove element.. el var indx el.attr 'id' var tmp hidden.getUnique if el.is ' hidden' add index of widget to hidden list tmp.push indx else remove element id from the list tmp.splice tmp.indexOf indx 1 hidden tmp.getUnique .cookie hidden hidden.join ' ' expires.. ' hidden' add index of widget to hidden list tmp.push indx else remove element id from the list tmp.splice tmp.indexOf indx 1 hidden tmp.getUnique .cookie hidden hidden.join ' ' expires cookieExpires  Return a unique array. Array.prototype.getUnique.. 
 How to make the value of one select box drive the options of a second select box http://stackoverflow.com/questions/2603539/how-to-make-the-value-of-one-select-box-drive-the-options-of-a-second-select-box  for i 0 i menu.length i c ' option ' menu i .category ' options ' '#cat' .html c .change function var indx this.selectedIndex 1 if indx 0 '#items' .empty .attr 'disabled' 'disabled' return var item ' option Select an item option.. i c ' option ' menu i .category ' options ' '#cat' .html c .change function var indx this.selectedIndex 1 if indx 0 '#items' .empty .attr 'disabled' 'disabled' return var item ' option Select an item option ' for i 0 i menu indx .items.length.. if indx 0 '#items' .empty .attr 'disabled' 'disabled' return var item ' option Select an item option ' for i 0 i menu indx .items.length i item ' option ' menu indx .items i .name ' options ' '#items' .html item .removeAttr 'disabled'   share.. 
 |