chapter_number | chapter_title |
1 | Introduction |
2 | Number System |
<select type="text" name="chapter_number" class="form-control form-control-line" value="">
<option selected="option" disabled="selected">Select</option>
<option value="1">1</option>
<option value="2">2</option>
</select
<input type="text" name="chapter_title" id="title" class="form-control"/>
ask by Christian Jamila translate from soabove is my table and next is my code the select option and the input field.
(上面是我的表格,接下来是我的代码select选项和输入字段。)
I want that when I select '1' automatically the input field will print chapter title 'Introduction' and If I select '2' the input field will became 'Number System'.(我希望当我自动选择“ 1”时,输入字段将打印章节标题“ Introduction”,如果我选择“ 2”,则输入字段将变为“ Number System”。)