I am getting a list of products from the database through a loop. The productId is placed in a hidden input. This input is placed in a div. What i need to do is get the value of a particular through Jquery.
below is my code
var t = document.getElementById('txtPID').value;
The thing is that the value that I get is the value found in the first input. (the first ProductId found in the page).
What can i do to get that particular value in the input using Jquery?
The answer to my question was this:
echo “”;
And for the jquery part: