Saturday, 30 September 2017

jquery - Get the value in an input text box



What are the ways to get and render an input value using jQuery?




Here is one:








Answer



//Get
var bla = $('#txt_name').val();

//Set
$('#txt_name').val(bla);


No comments:

Post a Comment

casting - Why wasn't Tobey Maguire in The Amazing Spider-Man? - Movies & TV

In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...