增加添加标题时js验证
This commit is contained in:
parent
85542095a6
commit
feb6dc139d
|
@ -2,7 +2,7 @@
|
|||
<div class="ur_editor radio">
|
||||
<div class="ur_editor_title">
|
||||
<label >问题: </label>
|
||||
<input class="ur_question_title" type="text" name="title" placeholder="请输入问题标题"/>
|
||||
<input class="ur_question_title" type="text" name="title" placeholder="请输入单选题标题"/>
|
||||
<input type="checkbox" name="required" value="true" checked=""/>
|
||||
<label >必答</label>
|
||||
</div>
|
||||
|
|
|
@ -2,22 +2,22 @@
|
|||
<div class="ur_editor checkbox">
|
||||
<div class="ur_editor_title">
|
||||
<label >问题: </label>
|
||||
<input class="ur_question_title" type="text" name="title" placeholder="请输入问题标题" value="多选题"/>
|
||||
<input class="ur_question_title" type="text" name="title" placeholder="请输入多选题题标题"/>
|
||||
<input type="checkbox" name="required" value="true" checked=""/>
|
||||
<label >必答</label>
|
||||
</div>
|
||||
<div class="ur_editor_content">
|
||||
<ul>
|
||||
<li class="ur_item">
|
||||
<label >选项 <span class="ur_index">01</span>: </label>
|
||||
<input type="text" name="option" placeholder="新建选项"/>
|
||||
<label>选项 <span class="ur_index">01</span>: </label>
|
||||
<input type="text" name="option" placeholder="新建选项"/>
|
||||
<a class="icon_add" title="向下插入选项"></a>
|
||||
<a class="icon_remove" title="删除"></a>
|
||||
</li>
|
||||
<div class="cl"></div>
|
||||
<li class="ur_item">
|
||||
<label >选项 <span class="ur_index">01</span>: </label>
|
||||
<input type="text" name="option" placeholder="新建选项"/>
|
||||
<label >选项 <span class="ur_index">01</span>: </label>
|
||||
<input type="text" name="option" placeholder="新建选项"/>
|
||||
<a class="icon_add" title="向下插入选项"></a>
|
||||
<a class="icon_remove" title="删除"></a>
|
||||
</li>
|
||||
|
|
|
@ -1,9 +1,17 @@
|
|||
<script type="text/javascript">
|
||||
function regexPollsTitle()
|
||||
{
|
||||
var polls_title = $.trim($("#polls_title").val());
|
||||
alert(polls_title);
|
||||
}
|
||||
</script>
|
||||
<div class="ur_editor ur_title_editor"> <!--编辑头部start-->
|
||||
<div class="ur_title_editor_title">
|
||||
<input type="text" name="title" class="input_title" value="问卷标题">
|
||||
<input type="text" name="title" id="polls_title" class="input_title" placeholder="问卷标题" onkeyup="regexPollsTitle();"/>
|
||||
</div>
|
||||
<div class="ur_title_editor_prefix">
|
||||
<textarea name="prefix" class="textarea_editor">问卷描述问卷描述问卷描述问卷描述问卷描述问卷描述问卷描述问卷描述问卷描述问卷描述问卷描述问卷描述</textarea>
|
||||
<textarea name="prefix" class="textarea_editor" placeholder="问卷描述">
|
||||
</textarea>
|
||||
</div>
|
||||
<div class="ur_editor_footer">
|
||||
<a class="btn_submit" data-button="ok">确定</a>
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<div class="ur_editor textarea"> <!--编辑多行文字start-->
|
||||
<div class="ur_editor_title">
|
||||
<label for="ur_question_title">问题: </label>
|
||||
<input id="ur_question_title" class="ur_question_title" contenteditable="true" type="text" name="title" placeholder="请输入问题标题"/>
|
||||
<input type="checkbox" name="required" value="true" id="ur_question_require"/>
|
||||
<input id="ur_question_title" class="ur_question_title" contenteditable="true" type="text" name="title" placeholder="请输入多行文字标题"/>
|
||||
<input type="checkbox" name="required" value="true" id="ur_question_require" checked=""/>
|
||||
<label for="ur_question_require">必答</label>
|
||||
</div>
|
||||
<div class="ur_editor_toolbar">
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<div class="ur_editor text "> <!--编辑单行文字start-->
|
||||
<div class="ur_editor_title">
|
||||
<label for="ur_question_title">问题: </label>
|
||||
<input id="ur_question_title_1" class="ur_question_title" contenteditable="true" type="text" name="title" placeholder="请输入问题标题"/>
|
||||
<input type="checkbox" name="required" value="true" id="ur_question_require_2"/>
|
||||
<input id="ur_question_title_1" class="ur_question_title" contenteditable="true" type="text" name="title" placeholder="请输入单行文字标题"/>
|
||||
<input type="checkbox" name="required" value="true" id="ur_question_require_2" checked=""/>
|
||||
<label for="ur_question_require">必答</label>
|
||||
</div>
|
||||
<div class="ur_editor_footer">
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
<div class="ur_question_item radio ur_editor02">
|
||||
<div class="ur_title">
|
||||
<span class="title_index">第1题:</span> 单选题单选题单选题单选题单选题单选题单选题单选题单选题单选题单选题单选题单选题单选题单选题单选题单选题单选题单选题单选题单选题 <span class="ur_required" title="必答">*</span>
|
||||
<span class="title_index">
|
||||
第<%= question_index%>题:
|
||||
</span>
|
||||
<%= poll_questions.question_title%>
|
||||
<span class="ur_required" title="必答">*</span>
|
||||
</div>
|
||||
<a href="#" class="ur_icon_de" title="删除"></a>
|
||||
<a href="#" class="ur_icon_edit" title="编辑"></a>
|
||||
|
@ -10,7 +14,10 @@
|
|||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<label ><input class="ur_radio" type="radio" value="新建选项" > 新建选项</label>
|
||||
<label >
|
||||
<input class="ur_radio" type="radio" value="新建选项" >
|
||||
新建选项
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr >
|
||||
|
|
Loading…
Reference in New Issue