Thursday, September 21, 2017

Re: coming back to register user page after not filling a text field is causing the already filled text fields come with an annexed "/" at the end of the values



On Thu, Sep 21, 2017 at 11:07 AM, fábio andrews rocha marques <fabioandrewsrochamarques@gmail.com> wrote:
Solved it: If i remove the "/" from all my <input> tags, it's solved.
Before:
<input id="usuario" type="text" name="usuario" value={{ nomeusuariocadastro }}/>
After:
<input id="usuario" type="text" name="usuario" value={{ nomeusuariocadastro }}>


You should be encapsulating the value of "value" in quotes:

<input id="usuario" type="text" name="usuario" value="{{ nomeusuariocadastro }}">

If you did that, you can also leave the / in place. I think it was interpreting the / as part of the value= rather than the closing of the tag due to the missing quotation marks.  

-James

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2Be%2BciWz%2B4Fe1eAKf4dCT1KAM1jT8b1zPjU93ReJWXAibdLHjw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment