Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function syncBook(s) {
- if (jQuery('#endbook')[0].value != "") return;
- var slc = jQuery('#startbook')[0].value;
- jQuery('.passage').each(function(i) {
- if (this == jQuery(s).parents('.passage')[0]) {
- jQuery('.end').each(function(j) {
- if (i == j) {
- jQuery("option[value='" + slc + "']", this).attr('selected', 'selected');
- }
- });
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement