This is a simple script to select first option of a select-box using jquery $('button').click(function(){ $("#CardCountry").val($("#CardCountry option:first").val()); });
Free tutorials, courses, generative tools, and projects built with Javascript, PHP, Android, Python, ML, AI, VR, ChatGPT, .Net, C#, Java, Microsoft, Kotlin, Youtube, Github Code Download and more.