0

I have a text box where i have to display the array values that i get from api and the problem is, I have used like this

<input name="f" type="text" id="f" value=entries.f> 

and i get the value as ["V"] incase of a single value and ["V", incase of multiple values so how can i display the array values like V, N in a textbox?

0

2 Answers 2

1

This will work for you

 <input name="f" type="text" id="f" value="<%= entries.f %>">
Sign up to request clarification or add additional context in comments.

Comments

0
<input name="f" type="text" id="f" value="<%= entries.f %>">

This might help if you're using Rails with ERB

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.