how to get specific attribute with prefix in element selected before js 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");