js/utils.js
// Pass in value to change, otherwise it returns the value of the "e" element
Pass in value to change, otherwise it returns the value of the "e" element
Pass in value to change otherwise it returns the value of the " e " element
function value(e, new_value) {
        e = $(e);
        if (!e)
            return '';
        if (e.options)
            return value(e.options[e.selectedIndex]);
        else if (e.value == null || e.tagName.toLowerCase() == 'option' && e.value == '') {
            if (new_value != null)
                e.innerHTML = new_value;
            return e.innerHTML;
        }
        if (new_value != null)
            e.value = new_value;
        return e.value;
    }
function value ( e , new_value ) { e = $ ( e ) ; if ( ! e ) return '' ; if ( e . options ) return value ( e . options [ e . selectedIndex ] ) ; else if ( e . value == null || e . tagName . toLowerCase ( ) == 'option' && e . value == '' ) { if ( new_value != null ) e . innerHTML = new_value ; return e . innerHTML ; } if ( new_value != null ) e . value = new_value ; return e . value ; }
Pass in value to change, otherwise it returns the value of the "e" element
Pass in value to change otherwise it returns the value of the " e " element
// A <select> // Just an html element?  (or in IE, an option element with no value="" specified) // Form field