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

Code Example 1

// Select id that starts with "GFG"
$( "[id^='GFG']" ).css("background-color", "pink");

Learn ReactJs, React Native from akashmittal.com