[jQuery] First jQuery Plugin

[jQuery] First jQuery Plugin


Hey guys, first off let me just say Im a jQuery noob, so if you see
any obvious errors/improvements, please feel free to inform me! I want
to make a simple plugin that auto-populates a html select element, it
works fine on the first element but when I call it again to populate a
second it appends nothing. Here are my calls in the jQuery UI ajax tab
where #product and #new-category are the select elements:
$(function(){
$("#product").popSelect("products");
$("#new-category").popSelect("categories");
});
HTML: