How can I select an element by name with jQuery?
Stack How?
Stackorigin – The Community of Question and Answers Latest Articles
Read More About Python List Comprehension with examples
Python List Comprehension: Python List comprehension provides a much more short syntax for creating a new list based on the values of an existing list. Advantages of List Comprehension in Python: Time Efficient than loop Space Efficient than loop Needs ...
Do not accept an offer letter from companies.
Do not accept an offer letter from companies without verifying the following points. Designation Salary Details & CTC Distribution Leave Policies Working Hours & Days Medical Coverage/Insurance Probation Period Notice Period Benefits and Perks Bonus F&F Policy
How to call API using Ajax
AJAX stands for Asynchronous JavaScript and XML and its used for to make calls to the server to fetch some data. In this article, we will learn how to implement a simple API call using AJAX technology. How to use GET ...
You can see best example from jsfiddle
https://jsfiddle.net/alex_arriaga/vSFqW/
Script var name = jQuery("#form1 input[name=name]").val(); //Returns TEST1 var fathername = jQuery("#form1 input[name=fathername]").val(); //Returns TEST2 console.log(name); console.log(fathername);. HTML:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <form name="form1" id="form1"> <input type="text" name="name" value="TEST1"/> <input type="text" name="<code>fathername"
value="TEST2"/> </form>