I'm using Jquery to get a list of elements having a class "x".
<p class="x">Some content</p> <p class="x">Some content#2</p>
If we use Jquery to get both these html elements and do something with it- we use something like:
This will change the text of both the paragraphs. From $(".x") - How can we add a array - subscript notation like we can do with getElementsByclassName as follows:
the error is Uncaught TypeError: $(...).get(...).text is not a function None of the solutions below WORK!