Users Pricing

forum

home / developersection / forums / jquery to check if an input has a specific name?

Jquery to check if an input has a specific name?

Anonymous User 2859 05 Oct 2013

Is there any function to check if an input has a specific name in jquery, like we check the existense of a class using hasClass()?

For example if I have an input

<input type="checkbox" class="col_control" checked="checked" name="sr_column" data-columnno="0" />

So that I can check hasName("sr_column") and it returns true


I am a content writter !


1 Answers