Why is jquery attr is not working for with error
This is part of the code that I am using and I get an error on the line "var gar = $(this).attr("liRegDet") method. Can someone tell me why? I am using IE7 with no options to move higher at the present time. The error is:SCRIPT450: Wrong number of arguments or invalid property assignment . which is being return from jquery.1.9.0.mni.js.Thanks.
- $(xmlDoc).find("RegistrationDetails").each(function()
- {
- var gar = $(this).attr("liRegDet"); if (gar == rid){
- currentDMVExpired = $(this).find("RegistrationExpired").text()
- if(currentDMVExpired == "true")
- { $("#DMVRegTable").css("border","2px solid #FF7171")}
- else { $("#DMVRegTable").css("border","2px solid #4297d7") }