How to set value of input text using jQuery?

Today, We want to share with you jquery set input value.In this post we will show you jquery set textbox value dynamically, hear for jquery sets value of hidden field we will give you demo and example for implement.In this post, we will learn about how to get input value in jquery? with an example.

jQuery text(), html(), and val() – Set content Examples

Example 1: index.html

Tamil Rockers.

TamilRockers is a public torrent website. TamilRockers website uploads the pirated versions of Tamil, Telugu, Hindi, English

Input field:

Access the input inside the div with this selector:

$(function () {
  $('.content input').val("pakainfo");

Select by input name:


Select by input class:


Select by input id:


Other Way

$(document).ready(function () {

    $('.content > input').val("TamilRockers");


I hope you get an idea about jquery input value get.
I would like to have feedback on my blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Leave a Comment