jQuery <input> set input text box value
<!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.4.1.min.js"></script> <script> $(document).ready(function(){ $("#myInput").val("https://"); });/*from www .j av a 2 s . co m*/ </script> </head> <body> <label>Enter Website URL:</label> <input type="text" id="myInput"> </body> </html>