I am having two lightning input inside a template and looping through the template and forming n number of lightning input as like below
<template for:each={questions} for:item="item" for:index="index">
<lightning-input name={item.rowId} onchange={getPrediction}>
</lightning-input>
<lightning-input name={item.rowId} class="inputMil" onchange={getPrediction} >
</lightning-input>
</template>
I need to give different names for the input box like
<lightning-input name={item.rowId} + "FromAdd .....
<lightning-input name={item.rowId} + "ToAdd .....
So that all the fields will have unique name. Is there a way we can achieve this in LWC?