Click here to Skip to main content
       

JavaScript

 
GeneralRe: form validation Pinmembertherainking7828-Nov-12 13:14 
AnswerRe: form validation PinmemberbVagadishnu28-Nov-12 11:14 
GeneralRe: form validation Pinmembertherainking7828-Nov-12 13:17 
Questionopeing a new window in JS after time interval PinmemberWaqasCheema20-Nov-12 23:36 
AnswerRe: opeing a new window in JS after time interval PinmemberAndrew Stoute30-Nov-12 4:51 
QuestionDraw circuit diagram using javascript Pinmemberanishkannan18-Nov-12 22:31 
AnswerRe: Draw circuit diagram using javascript Pinmembern.podbielski19-Nov-12 21:07 
Answerto transfer items in select list to another select list without duplicates Pinmemberraviteja999200014-Nov-12 20:09 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml">
<script language="JavaScript">
function b2_clear() {
document.getElementById('second').length = 0;


}
function move_first_to_second(value) {
var len = document.getElementById('second').length;
var list=document.getElementById('second');
 
var i = 0, c = 0;
 
if (len == 0) {
list.options[list.length] = new Option(value);
len = 1;
}
else {
for (i = 0; i < list.length; i++)
if(list[i].value == value){

c++;
}

if(c>0){
c=0;
}
else{
list.options[list.length]=new Option(value);
}
}
}
 

 

</script>
 
<form name="form1" method="" action="">
 
<select name="first" id="first" size="5">
<option>Choose 1</option>
<option>Choose 2</option>
<option>Choose 3</option>
<option>Choose 4</option>
<option>Choose 5</option>
</select>
<input type="button" id="move" value=">" onclick="move_first_to_second(document.getElementById('first').value);">
<select name="second" id="second" size="3">
</select> 
</form>

<input type="button" id="b2" value="clear"
önclick="b2_clear();">

 
</html>
QuestionHow does Yandex do its trick? PinmemberXarzu14-Nov-12 19:42 
AnswerRe: How does Yandex do its trick? [modified] PinmvpManfred R. Bihy14-Nov-12 20:44 
Questiondisplay record from two different time Pinmemberuti123fil8-Nov-12 17:15 
AnswerRe: display record from two different time PinmvpRichard MacCutchan8-Nov-12 23:47 
QuestionAdding a month to the current date PinmemberSadiqMohammed6-Nov-12 23:48 
AnswerRe: Adding a month to the current date PinmemberRichard Deeming7-Nov-12 2:00 
GeneralRe: Adding a month to the current date PinmemberSadiqMohammed7-Nov-12 18:31 
GeneralRe: Adding a month to the current date PinmemberRichard Deeming8-Nov-12 2:11 
GeneralRe: Adding a month to the current date PinmemberSadiqMohammed8-Nov-12 19:08 
AnswerRe: Adding a month to the current date Pinmemberdeepak.m.shrma19-Nov-12 18:07 
GeneralRe: Adding a month to the current date PinmemberPeter_in_278019-Nov-12 18:58 
GeneralRe: Adding a month to the current date Pinmemberdeepak.m.shrma19-Nov-12 19:52 
QuestionNeed to pass object value from javascript to php Pinmembergern844-Nov-12 10:08 
SuggestionRe: Need to pass object value from javascript to php Pinmembern.podbielski4-Nov-12 12:56 
GeneralRe: Need to pass object value from javascript to php Pinmembergern844-Nov-12 13:29 
GeneralRe: Need to pass object value from javascript to php Pinmembern.podbielski4-Nov-12 20:48 
GeneralRe: Need to pass object value from javascript to php Pinmemberzengnanhua22-Nov-12 18:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.140415.2 | Last Updated 17 Apr 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid