Button staying hidden

Asked

Viewed 72 times

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...

  • is the one I posted, the generated html is exactly that one.

  • Right, but those buttons aren’t on any, div ? there is no css being assigned to them?

  • No div, only bootsstrap standard css.

  • OK, if possible put the html that is being generated by php...

  • No inspect browser element has no rule that is hiding these buttons in css?

  • 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?

  • By the way, tag button does not need type='button'.

  • Kenny no rule

  • I don’t understand your question Antonio

  • To test if you are really being created in the same position on the screen, try inserting a <br> after the button closure.

  • you’re mixing php and javascript without distinguishing them is that?

  • No, I’m separating php and javascript, each in its normal tag.

  • Lucas, I did what you asked but as that button is not shown the br also not.

  • Button has not href nor target, just to let you know.

Show 10 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.