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 User256905-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


Updated on 05-Oct-2013
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By