javascript - out of memory at line 16 on IE8 -


i have issue on ie8,while running website.

on line 16, have called function styleonbuttons() javascript function, set css styles, placed in document.ready.

jquery verison used is: 1.6.2

function code snippet below

function styleonbuttons() { if ($.browser.mozilla || (navigator.useragent.tolowercase().indexof('chrome') > -1)) {     var submitbtns = $(":submit");     var idx = 0;     (idx = 0; idx < submitbtns.length; idx++) {         if ($(submitbtns[idx]).attr("disabled")) {             $(submitbtns[idx]).parent().parent().parent().addclass("op45");         }         else {             $(submitbtns[idx]).parent().parent().parent().removeclass("op45");         }     } } } 

edit:

<script language="javascript" type="text/javascript">     $(document).ready(function() {     $(".divctmclass").hide();     $(".divex").hide();         setpagelayout(2, 0, true);     styleonbuttons();  \\ [line 16 in aspx page]         sys.webforms.pagerequestmanager.getinstance().add_endrequest(function() { setpagelayout(2, 0, false); styleonbuttons(); });      }); 

whats wrong in this? please guide me same. in advance!!


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -