How does jquery get the value of the current name by the name name

  • 2020-03-30 00:59:24
  • OfStack

 
$("*[name='name']").val(); //Get vlaue value
$("*[name='name']").attr('id','name'); //Add id name
$("*[name='name']").after('<div>hello world</div>'); //Add an element outside the current

Related articles: