I have inputs like this:
<input type="text" id="contact[actif]" name="contact[actif]">
<input type="text" id="contact[sql]" name="contact[sql]">
<input type="text" id="interlocuteur[actif]" name="interlocuteur[actif]">
<input type="text" id="interlocuteur[sql]f" name="interlocuteur[sql]">
I have an object like this which comes from JSON stored in sessionStorage:
contact: {
actif: true,
sql: "SELECT * from w "
},
interlocuteur:{
actif: true,
sql: "select * from l"
}
How I can fill my inputs with values from the object?