I'm trying to get unique id for each table row on my input fields and buttons. Currently all ids in my table are the same. I want to set unique id for each input field ans save button. Here is my HTML code:
<cfoutput query="qryTable" group="DateSch">
    <tbody> 
        <tr>
            <td rowspan="#StartTime#">#DateFormat(DateSch,'mm/dd/yyyy')#</td>
        </tr>
        <cfoutput>
            <tr>
                <td>#TimeFormat(StartTime,'hh:mm tt')#</td>
                <td>#TimeFormat(EndTime,'hh:mm tt')#</td>
                <td>
                    <label>
                        <input type="text" name="email" id="email" class="email" placeholder="example@gmail.com">
                        <input type="button" id="slot" name="slot" class="slot" value="Save" onClick="saveSlot('#TimeSlotID#')">
                    </label>
                </td>
            </tr>
        </cfoutput>
    </tbody>
</cfoutput>
As you can see from code above my input field ids are all email and my button ids are slot. How I can make them unique for each row? If anyone can help please let me know.
 
     
     
     
     
    