How to set value of input field in jQuery

How to set the value of input text field using jQuery

In this tutorial, you will be learning how to set your given value in an input textbox using jquery.

So, We will be using jquery val() method to set the value inside the input box as given below.




<!DOCTYPE html>
<html lang="en">
    <title>jQuery Tutorials</title>

        <label>My Name is:</label>
        <input type="text" id="myInputBox" />

    <script src=""></script>
        $(document).ready(function () {
            var input_value = "Funda of Web IT";


Thanks for reading.