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

Code Example 1

$('[id^=editDialog]')

Code Example 2

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

Code Example 3

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

Code Example 4

$( "input[name^='news']" ) //name starts with news

Learn ReactJs, React Native from akashmittal.com