jQuery Plugin To Return Delimited Value List Of Stack Element Attributes (Follow Up)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>Writing jQuery Plugin Demo</title>
 
	<!-- Linked Files. -->
	<script type="text/javascript" src="jquery.pack.js"></script>
	<script type="text/javascript">
 
		// This jQuery v1.1.3 plugin will return an delimited
		// list of the given attribute of all elements in the
		// current jQuery stack.
 
		jQuery.fn.attrList = function( strAttribute, strDelimiter ){
			// Create an array to store the attribute values of
			// the jQuery stack items.
			var arrValues = new Array();
 
			// Check to see if we were given a delimiter.
			// By default, we will use the comma.
			strDelimiter = (strDelimiter ? strDelimiter : ",");
 
			// Loop over each element in the jQuery stack and
			// add the given attribute to the value array.
			this.each(
				function( intI ){
					// Get a jQuery version of the current
					// stack element.
					var jNode = $( this );
 
					// Add the given attribute value to our
					// values array.
					arrValues[ arrValues.length ] = jNode.attr(
						strAttribute
						);
 
				}
				);
 
			// Return the value list by joining the array.
			return(
				arrValues.join( strDelimiter )
				);
		}
 
 
		// This will return the ID list of all inputs
		// with the name, "ID".
 
		function GetIDs(){
			return(
				$( "input[@name='id']" ).attrList( "value", "-" )
				);
		}
 
	</script>
</head>
<body>
 
	<form>
 
		<!---
			Get some hidden values. The order of the
			value is important. We want to make sure
			this is reflected in the value list.
		--->
		<input type="hidden" name="id" value="4" />
		<input type="hidden" name="id" value="5" />
		<input type="hidden" name="id" value="1" />
		<input type="hidden" name="id" value="2" />
		<input type="hidden" name="id" value="3" />
 
		<input
			type="button"
			value="Alert Value List"
			onclick="alert( GetIDs() );"
			/>
 
	</form>
 
</body>
</html>

For Cut-and-Paste