Specify a certain checkbox, not every single one on the page?
Specify a certain checkbox, not every single one on the page?
- $(document).ready(function(){
- $("select").change(function () {
- id = null;
- $("select option:selected").each(function () {
- id = $(this).val();
- });
-
- $.get("_getPos.php", { cat: id },
- function(data){
- $('#pos').val(data);
- });
-
- }).change();
- });
How do I specify in my selector that I want to link the .change() function only to the select form with the id of "pos_selector"?
Thanks.