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
Post a Comment