fix select range bug in ie. support custom input