1
I have 2 variables when they cease to be null are created two buttons, the problem is that one always appears hidden, if I inspect the code it ta there, but on the screen nothing appears, I’m suspicious that it is because the two are trying to be created in the same place, and one is bugging the other.
error button creation code:
if (isset($_POST['escondido']))
{
print "<button type='button' href='' target='' class='btn btn-danger' data-toggle='modal' data-target='#modalImagens'><strong>Imagens do componente</strong></button>";
}
If possible place the
html
and thecss
applied to the buttons...– JcSaint
is the one I posted, the generated html is exactly that one.
– Roberto Albino
Right, but those buttons aren’t on any,
div
? there is nocss
being assigned to them?– JcSaint
No div, only bootsstrap standard css.
– Roberto Albino
OK, if possible put the
html
that is being generated by php...– JcSaint
No inspect browser element has no rule that is hiding these buttons in css?
– Kenny Rafael
The code there of the question has only one button, which only appears when the variable "hidden" is sent by POST. You are not confusing that there are two because of the closing tag no?
– Antonio Alexandre
By the way, tag button does not need type='button'.
– Antonio Alexandre
Kenny no rule
– Roberto Albino
I don’t understand your question Antonio
– Roberto Albino
To test if you are really being created in the same position on the screen, try inserting a
<br>
after the button closure.– BrTkCa
you’re mixing php and javascript without distinguishing them is that?
– wwwjsw
No, I’m separating php and javascript, each in its normal tag.
– Roberto Albino
Lucas, I did what you asked but as that button is not shown the br also not.
– Roberto Albino
Button
has nothref
nortarget
, just to let you know.– Diego Souza