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

php - How can I edit my code to echo the data of child's element where my search term was found in, in XMLReader? -

javascript - Iterate over array and calculate average values of array-parts -

jQuery Ajax Render Fragments OR Whole Page -