Reputation: 348
PS : i am using internet explorer in build debugger (F12)
I am having a problem with ie 8, i keep on getting "Object doesn't support this property or method" on the execution of this script (name.size() apparently pauses a problem) although i am pretty sure that my script is 100 % correct PART 1, i have tried every other way from length....which leads me to think that the problem might be provoced by some other portions earlier in my code. i am also having the same error on PART 2 of my code.
so to resume the two codes below create this error (Object doesn't support this property or method), one on the size, and the other on the title tag
Any thoughts please ?
PART 1 :
$('input:hidden').each(function(){
var name ="[name='"+$(this).attr('name')+"']";
if($(name).size()>1){
$(this).remove();
}
});
PART 2:
<title>C O C P I T -- COnsistency Catalog Parameterisation Inventory</title>
<LINK href="formIE.css" rel=stylesheet type=text/css>
<script type='text/JavaScript'>
Upvotes: 1
Views: 2126
Reputation: 324600
Since jQuery objects are array-like in that they expose the selector's matched elements like an array, why not treat it as such?
if( $(name).length > 1)
Upvotes: 2