Use strtolower() on type attribute