从FORM onchange单选按钮发送标签和文本到表格单元格并从textarea发送文本到表格单元格

时间:2012-02-08 11:57:14

标签: jquery

我必须在表单上发送标签和文本,例如:

标记从par03par01par03par02par03par03输入到td#par03Label以及来自p#par03par01textp#par03par02textp#par03par03text的文字td#par03Text

并且第二件事与第一件事无关,从#par03par04texttd#par03TextComments

打字时从textarea发送文字

HTML

广播

<div id="par03WraperAbsolute">              
                <div class="close"></div>   
                <div id="par03">                    
                    <form id="form03">
                        <fieldset>                          
                            <div class="inputWraper clearfix">                               
                              <input type = "radio"
                                     name = "wykladzina"
                                     id = "par03par01"
                                     value = ""
                                     checked = "checked" />
                              <label for = "par03par01">Label01</label>
                              <p id="par03par01text" class="formP ">Text01</p>
                            </div>

                            <div class="inputWraper clearfix">
                              <input type = "radio"
                                     name = "wykladzina"
                                     id = "par03par02"
                                     value = "" />
                              <label for = "par03par02">Label02</label>
                              <p id="par03par02text" class="formP ">Text02</p>
                            </div>

                            <div class="inputWraper clearfix">
                              <input type = "radio"
                                     name = "wykladzina"
                                     id = "par03par03"
                                     value = "" />
                              <label for = "par03par03">Label03</label>
                              <p id="par03par03text" class="formP"><textarea></textarea></p>
                            </div>

                            <div class="inputWraper clearfix uwagi">
                              <label for = "par03par04">Label04</label>
                              <p id="par03par04text" class="formP "><textarea></textarea></p>
                            </div>
                        </fieldset>
                    </form>
                </div>              
            </div>

DIV TABLE

<table>
<tr>
                <th colspan="2">Title</th>
            </tr>
            <tr>
                <td id="par03Label" class="par03table">Label</td>
                <td id="par03Text" class="par03table">Text</td>
            </tr>
            <tr>
                <td id="par03LabelComments" class="par03table uwagi">CommentsLabel</td>
                <td id="par03TextComments" class="par03table uwagi">CommentsText</td>
            </tr>
</table>

0 个答案:

没有答案