function through starting of id in jquery code example
Example: jquery selector id that starts with
// Select id that starts with "GFG"
$( "[id^='GFG']" ).css("background-color", "pink");
// Select id that starts with "GFG"
$( "[id^='GFG']" ).css("background-color", "pink");