I have 5 IDS (5 DOM elements) and I need to use JQuery's text () function to add different text to each one of them.
$("#ID1").text("bla");
$("#ID2").text("blabla");
....
There is a simpler way of doing this, if the texts were the same, you could comma-separated the selectors, but they are not.
I thought of something like:
.text(function() {
$("#ID1") = "bla";
$("#ID2") = "blabla";
});
Anyway, any suggestion, even for good practice and to keep the code simplified and clean.