By using the # character in your selector, you're indicating that you
are targeting the element by ID. Having multiple items on a page with
the same ID will not work.
I would suggest you create a special class for these selects and then
target them that way.
example:
<select class="priority" id="someuniquevalue" name="someuniquevalue">
<options go here>
</select>
> $(document).ready(function(){
> $("select.priority").change(function() {
>
> jQuery.ajax({
> data: "prio=" + $(this).val() + "&ID=1",
> url: "do_priority.asp",
> timeout: 2000,
> error: function() {
> console.log("Failed to submit");
> },
> success: function(r) {
> $(this).removeAttr("disabled");
> }
> });
>
> $(this).attr("disabled", "disabled");
>
> });
>
> });