javascript - jQuery : check if label by a specific name exists -


check if label specific name exists,

say if want find if such label exists

<label onclick='javascript:somemethod()' name="label_name">*some text*</label> 

if need implement code.

try in condition loop -- $('label[name="label_name"]').length


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 -