我有3个选择框,我想将所选值复制到第二个选择框,从第二个框复制到第三个选择框.在3选择框中,选择框将具有相同的选项.
我该怎么做?
JSFiddle http://jsfiddle.net/andrewvmail/27rFQ/3/
A:<select id="inputsa">
<option id="inputa" name="input[1][]">A</option>
<option id="inputb" name="input"> B</option>
<option id="inputc" name="input[2][]"> C</option>
</select>
B:<select id="inputsb">
<option id="inputa" name="input[1][]">A</option>
<option id="inputb" name="input"> B</option>
<option id="inputc" name="input[2][]"> C</option>
</select>
C:<select id="inputsc">
<option id="inputa" name="input[1][]">A</option>
<option id="inputb" name="input">B</option>
<option id="inputc" name="input[2][]">C</option>
</select>
<br>
<input id="copyAtoB" type="button" value="Copy A to B" onclick="functionCopyAtoB();">
<br>
<input id="copyBtoC" type="button" value="Copy B to C" onclick="functionCopyBtoC();">
Run Code Online (Sandbox Code Playgroud)
干杯
我有这样的多个复选框
<input name="1[]" type="checkbox">
<input name="1[]" type="checkbox">
<input name="2[]" type="checkbox">
<input name="2[]" type="checkbox">
<input name="3[]" type="checkbox">
<input name="4[]" type="checkbox">
Run Code Online (Sandbox Code Playgroud)
如何将onclick绑定到所有这些复选框.并运行一个函数..让我们说一个提示"你单击列出的复选框之一"
$("input").click() {
return confirm("you click one of the listed checkbox?");
});
Run Code Online (Sandbox Code Playgroud)
这不起作用
SELECT
Event.Id, Event.Title, Event.StartDateTime, Event.DeadlineDate,
[File].ShortFileName, People.Initials
FROM
People
INNER JOIN
People2Event ON People.Id = People2Event.PeopleId
RIGHT OUTER JOIN
[File]
INNER JOIN
File2Event ON [File].Id = File2Event.FileId
RIGHT OUTER JOIN
Event ON File2Event.EventId = Event.Id ON People2Event.EventId = Event.Id
Run Code Online (Sandbox Code Playgroud)
我有这个声明它可以打印所有记录.下面不起作用,它与where函数的声明相同.有谁知道如何解决?
SELECT
Event.Id, Event.Title, Event.StartDateTime, Event.DeadlineDate,
[File].ShortFileName, People.Initials
FROM
People
INNER JOIN
People2Event ON People.Id = People2Event.PeopleId
RIGHT OUTER JOIN
[File]
INNER JOIN
File2Event ON [File].Id = File2Event.FileId
RIGHT OUTER JOIN
Event ON File2Event.EventId = Event.Id ON People2Event.EventId = Event.Id
WHERE …Run Code Online (Sandbox Code Playgroud)