Check out example codes for "jquery id that starts with". It will help you in understanding the concepts better.

Code Example 1

$('[id^=editDialog]')

Code Example 2

$("td[id^=" + value + "]")

Learn ReactJs, React Native from akashmittal.com