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

Why does Ruby on Rails generate add a blank line to the end of a file? -

node.js - Bad Request - node js ajax post -

uitableview - Create and use custom prototype table cells in xamarin ios using storyboard -