[jQuery] Jquery issue with IE 6 (works in chrome and firefox)
This works fine in chrome and firefox but does not in IE6. i am yet to
try it out in IE 7. As you can see, i have an input field and when
user enters a value and clicks on Save, Jquery $("span.saveLink").click
(function() gets invoked which populates the SaveUserForm(pls note my
input field is outside and its not enclosed in a form). The issue is,
form gets submitted but except isNew set to 0 or 1, all other fields
in Struts action show ""(empty string) when i do this in IE6 where as
in Chrome and Firefox, form values get populated correctly in Struts.
Action. I tried Firebug and did not complain of any javascript errors.
What am i doing wrong? Please respond quickly as testing is blocked.
I tried to replace
$("form#saveUserForm input#userGuid").val(id);
$("form#saveUserForm input#amount").val(value);
$("form#saveUserForm input#totalAvailableStorage").val
(totalAvailableStorage);
with
document.saveUserForm.userGuid=id;
document.saveUserForm.amount=id;
document.saveUserForm. totalAvailableStorage =id;
but IE6 complains that those properties are undefined.
<script src="scripts/jquery-1.3.2.min.js"></script>
<script language ="javascript">
$(document).ready(function() {
// Add striping for data tables
$('table.cbobDataTable tbody tr:nth-child(odd)').addClass('odd');
$('table.cbobDataTable tbody tr:nth-child(even)').addClass('even');
$('div.edit').hide();
$('div.view').show();
var numUserListRows = $('table#userList tr').length - 1;
var totalAvailableStorage = "<fmt:formatNumber value="$
{requestScope.profileInfo.cbobTotalPurchased -
requestScope.profileInfo.cbobTotalAllocated}" maxFractionDigits="0" /