get all elements with id starts and class 1

get all elements with id starts and class

$('[id^=editDialog]')

Here is what the above code is Doing:
1. Find all elements with an id that starts with editDialog
2. For each of those elements, find the element with the class .edit-dialog-content
3. For each of those elements, find the element with the class .edit-dialog-title
4. For each of those elements, find the element with the class .edit-dialog-title-text
5. For each of those elements, set the text to the value of the title variable

Similar Posts