| Line 77... |
Line 77... |
| 77 |
if ($(this).val() == '') {
|
77 |
if ($(this).val() == '') {
|
| 78 |
$(this).val('Enter the characters shown');
|
78 |
$(this).val('Enter the characters shown');
|
| 79 |
$(this).removeClass('captcha_text_focus');
|
79 |
$(this).removeClass('captcha_text_focus');
|
| 80 |
$(this).addClass('captcha_text_blur');
|
80 |
$(this).addClass('captcha_text_blur');
|
| 81 |
}
|
81 |
}
|
| 82 |
});
|
- |
|
| 83 |
|
82 |
});
|
| - |
|
83 |
|
| - |
|
84 |
jQuery("#emi-options").find('tbody>tr').live('click', function(){
|
| - |
|
85 |
$(this).find('input').attr("checked", "checked");
|
| - |
|
86 |
$('span.mk_total_amount').html($(this).find('span:last').html());
|
| - |
|
87 |
});
|
| - |
|
88 |
|
| - |
|
89 |
|
| - |
|
90 |
|
| - |
|
91 |
jQuery(document).ready(function(){
|
| - |
|
92 |
var bankEle = jQuery("#bank-name");
|
| - |
|
93 |
jQuery.each(banks, function(index, bank){
|
| - |
|
94 |
bankEle.append('<li title="' + bank.name +'" style="background-position:right ' + bank.top +'px;"><input type="radio" id="' + index +'" value="' + index +'" name="bank-selected"' + (bank.active ? '""' : 'disabled="disabled"') + ' /></li>');
|
| - |
|
95 |
});
|
| - |
|
96 |
bankEle.find("li").click(function(){
|
| - |
|
97 |
var firstCb = jQuery(this).find("input")[0];
|
| - |
|
98 |
if(!firstCb.disabled && !firstCb.checked) {
|
| - |
|
99 |
jQuery(firstCb).attr("checked", "checked");
|
| - |
|
100 |
var bankId = jQuery(firstCb).val();
|
| - |
|
101 |
var bank = banks[bankId];
|
| - |
|
102 |
var emiTableEle = jQuery("#emi-options");
|
| - |
|
103 |
tbodyEle = [];
|
| - |
|
104 |
jQuery.each(bank.emis, function(id, bankTenure) {
|
| - |
|
105 |
tbodyEle.push('<tr>');
|
| - |
|
106 |
tbodyEle.push('<td><input id="tenure_' + id + '" type="radio" name="payment_option" value="' + id + '"/></td>');
|
| - |
|
107 |
tbodyEle.push('<td>' + bankTenure.tenureDescription + '</td>');
|
| - |
|
108 |
tbodyEle.push('<td style="text-align:center"><span class="rupee-icon">' + bankTenure.emiProcessingCharge + '</span></td>');
|
| - |
|
109 |
tbodyEle.push('<td style="text-align:center"><span class="rupee-icon">' + bankTenure.monthlyEmi + '</span></td>');
|
| - |
|
110 |
tbodyEle.push('<td style="text-align:center"><span class="rupee-icon">' + bankTenure.totalAmount + '</span></td>');
|
| - |
|
111 |
tbodyEle.push('</tr>');
|
| - |
|
112 |
});
|
| - |
|
113 |
emiTableEle.find('tbody').html(tbodyEle.join(''));
|
| - |
|
114 |
|
| - |
|
115 |
emiTableEle.find("tbody>tr:first").trigger("click");
|
| - |
|
116 |
}
|
| - |
|
117 |
});
|
| - |
|
118 |
bankEle.find("li:first").trigger("click");
|
| - |
|
119 |
});
|
| - |
|
120 |
|
| 84 |
|
121 |
|