Hello, there were 2 scripts. The first adds $ post ['id'] (post number) to the click form. And the second script opens a window that is hidden. I wanted to do that when you click on "Answer" - a form appeared and $ post ['id'] (post number) was added to it. I combined these 2 scripts, a modal window opens, but $ post ['id'] (post number) does not want to be added to the form. Do not tell what is the matter?
http://jsfiddle.net/NDHuZ/

  • For starters, it would be nice to remove html tags from the javascript field - Crasher
  • jsfiddle.net/NDHuZ/2 Done. If you find it easier to identify the problem. - gm-111
  • I have your example crookedly displaying the html window, it duplicates references and "whiskers" (}). - Gena Tsarinnyy
  • I do not know, everything is fine with me. There, by the way, another <script type = "text / javascript" src = " code.jquery.com/jquery-1.7.2.min.js "></script> must be connected, and there is a style piece. I don’t know, it can help: #boxes .window {position: fixed; margin: 0 auto; width: 700px; height: 300px; display: none; z-index: 9999; padding: 20px; } #boxes #dialog {width: 700px; height: 403px; padding: 10px; } - gm-111

0