When I alerted the type of a select element in JavaScript it displayed 'select-one'. But I thought it would display an empty string.
alert(document.getElementById('catsel').type)
// where catsel is a select box. it displayed select-one
I tested this in Firefox 3.0.0.10
Is it a cross browser value? I have never used this property until now. I just want to know whether the value select-one is the same in all browsers.
Besides I am using jQuery in my page. When I searched throughout the project for the string "select-one" matches were found in jquery.js. So I conclude that when the page had loaded jQuery is setting a property 'type' to the select elements. Am I right?