HTML表单复选框textarea输入

时间:2018-03-30 04:58:41

标签: html html5

https://i.imgur.com/x8t4nfZ.png

基本上,该字段具有由复选框状态启用的textarea。如果未选中该复选框,则在提交时不会将textarea中的文本发送到服务器。我似乎无法找到解决方案来实现这一目标。我宁愿不要求js。

以下是我目前的情况。



render: function() {
    return (
      <Modal
        bsSize={this.props.size}
        aria-labelledby="contained-modal-title-lg"
        show={this.props.show}
        style={{ content : {top: '70%'}}}
        onHide={this.hideModal}>
        <Modal.Header>
          <Modal.Title id="contained-modal-title-lg">{this.props.modalTitle}</Modal.Title>
        </Modal.Header>
        <Modal.Body>
          {this.props.modalBody || this.modalBody}
        </Modal.Body>
        <Modal.Footer>
          <Button onClick={this.hideModal}>Cancel</Button>
          <Button bsStyle="primary" onClick={this.props.modalCallback}>{this.props.confirmButtonText}</Button>
        </Modal.Footer>
      </Modal>
    );
&#13;
&#13;
&#13;

0 个答案:

没有答案
相关问题