SHOW:
|
|
- or go back to the newest paste.
1 | function syncBook(s) { | |
2 | - | if (jQuery('#endbook')[0].value != "") return; |
2 | + | var slc = jQuery(s)[0].value; |
3 | - | var slc = jQuery('#startbook')[0].value; |
3 | + | |
4 | if (this == jQuery(s).parents('.passage')[0]) { | |
5 | jQuery('.end').each(function(j) { | |
6 | if (i == j) { | |
7 | jQuery("option[value='" + slc + "']", this).attr('selected', 'selected'); | |
8 | } | |
9 | }); | |
10 | } | |
11 | }); | |
12 | } |