jquery - How should i get some value from javascript object and check for null -


i getting element as

   var minpriceperinputfield = $("input#a"+indexnr); 

the element can present or not also. getting [object object] thing. have no idea this. receiving [object object] when element not there.

use

if(   $(minpriceperinputfield).length === 0); 

means null. no element selector.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -