Users Pricing

forum

Home Forums Jquery to check if an input has a specific name? – MindStick

Jquery to check if an input has a specific name?

Anonymous User 2945 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


1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md