Despite the importance and exciting progress of surface-emitting (SE) semiconductor lasers, we have limited choices of lasing wavelength even today. From an application viewpoint, it is desirable to have an architecture that can allow SE lasing in a wide spectral range, based on the need of applications. Herein, we demonstrate a path for SE lasers with lasing wavelength on demand by exploiting III-nitride nanowire optical cavities formed by low-temperature selective area epitaxy (SAE), combined with fine-tuning of substrate patterns and photonic bands. Moreover, in this study, we focus on the device demonstration in the ultraviolet (UV) spectral range, considering the severe lag in developing SE lasers in the UV wavelength range compared to longer wavelengths, e.g., near-infrared (NIR), as well as the potential applications enabled by UV lasers such as solar blind optical wireless communications. Ultralow threshold wavelength-tunable SE UV lasing is achieved by optical pumping. Moreover, SE UV lasing under direct electric current injection is also achieved. This study not only represents an important step in the journey of SE UV laser development but, more importantly, it lays the ground for SE lasers with lasing wavelength on demand, broadly from NIR to UV.