Welcome Guest, Not a member yet? Register   Sign In
Why CodeIgniter put the input hidden fields in a div display:none
#1

[eluser]pierrehs[/eluser]
Hello,
I find the hidden forms fields in a div style="display:none"

For example for the security token

Code:
<div>
&lt;input type="hidden" name="csrf_test_name" value="b850b6655768640df3e2b887yobpgh79"&gt;
</div>

I want to know the reason, because in any case, all fields of type hidden are not visible.

Thank you.
#2

[eluser]kanjimaster[/eluser]
I don't remember the precise details, but some older browsers would hide the hidden fields, but still allocate them some vertical height, which could mess up form layouts. Wrapping them in a div with display:none would eliminate this problem.




Theme © iAndrew 2016 - Forum software by © MyBB