Hello,

I am building a forum and i have a option where members can report bad
posts on the forum.

The script i am using is:
http://www.ericmmartin.com/projects/simplemodal/

Now i also want to add the ID of the messages to a hidden field. I now
have the following:

<a href="#" class="basic" id="{$foo.reactieid}"><img src="/media/
images/mededeling.gif" alt="Reactie melden" /></a>

id = the messages id

In the <head>

        $(document).ready(function () {
                $('#basicModal input.basic, #basicModal 
a.basic').click(function (e)
{
                        e.preventDefault();
                        var messagesid = this.id;
                        $('#basicModalContent').modal({persist: true});
                });
        });

And finally the form to submit the messages:

    <div id="basicModalContent" style='display:none'>
        <form method="post">
            <strong>Bericht melden</strong>
            <br /><br />
            Voldoet een topic niet aan de regels van .....nl meld het
dan via dit formulier. Vul hier onder een reden in aub.
            <br /><br />
            <textarea name="reden" style="width:100%; height:80px;"></
textarea>
            <br />
            <input name="meld" type="button" value="Melden" /> <input
name="meld" type="button" value="Annuleren" class="simplemodal-close" /
>
        </form>
    </div>

How do i get the var messagesid = this.id; in a hidden field in the
form?

Any one how can assist me with this.

Erwin

Reply via email to