Lines 42-48
$(document).ready(function() {
Link Here
|
42 |
$(current_column).find("input[type='text']").val(itm); |
42 |
$(current_column).find("input[type='text']").val(itm); |
43 |
// select the corresponding option |
43 |
// select the corresponding option |
44 |
$(current_column).find("select option").each(function(){ |
44 |
$(current_column).find("select option").each(function(){ |
45 |
if ( $(this).text().toLowerCase() == itm.toLowerCase() ) { |
45 |
opt = $(this).text().toLowerCase(); |
|
|
46 |
opt = opt.replace(/^\s*|\s*$/g,''); |
47 |
if ( opt == itm.toLowerCase() ) { |
46 |
$(this).attr('selected', 'selected'); |
48 |
$(this).attr('selected', 'selected'); |
47 |
} |
49 |
} |
48 |
}); |
50 |
}); |
49 |
- |
|
|