internet explorer 7 - jquery val().length causing error in ie7 -


in following line getting error "object doesn't support property or method" in ie7.

if($("#"+id+"_txt").val().length > 0) {     ........... } 

anybody know problem is?

thanks

var id=''; id= $("#"+id+"_txt").val(); if(id.length > 0) {    //do } 

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 -