Peel onions. Sprinkle salt over onions. Mix ice through them; ice water may be used, but keep adding ice to keep onions cold. Let stand 3 hours; drain. Combine sugar, vinegar, and spices; add onions to spices and heat until color changes (DO NOT BOIL). Ladle into sterilized jars and seal.