Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery Set Value of Input Text Box</title> <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script> <script> $(document).ready(function(){ $("#myInput").val("https://"); }); </script> </head> <body> <label>Enter Website URL:</label> <input type="text" id="myInput"> </body> </html>