Legal way to create ID
Legal way to create ID
I just would like to know if this a "legal" way of creating IDs for elements ...
$('.itinerary').append('<li class="gm-it-step" id=stepID' + tm_c_globalCounter +' ">' + stepdirection + '</li>' ) ;
j and tm_c_globalCounter increment in a loop....