jQuery AutoPopulate Box Plugin Demo


Sample 1


Code:
  1.  
  2. $(function(){
  3. $('#tests').autoPopulateBox({
  4. emptyLabel: '(select)',
  5. url: '/autopopulatebox/populate/',
  6. change: 'category',
  7.  
  8. category: {
  9. target: '#categories',
  10. change: 'content'
  11. },
  12. content: {
  13. target: '#contents'
  14. }
  15. });
  16. });
  17.  


Sample 2


Code:
  1.  
  2. $(function(){
  3. $('#tests2').autoPopulateBox({
  4. url: '/autopopulatebox/populate/',
  5. change: 'category2',
  6.  
  7. category2: {
  8. target: '#categories2',
  9. change: 'content2'
  10. },
  11. content2: {
  12. target: '#contents2'
  13. }
  14. });
  15. });
  16.  


Back to Documentation