Answers for "jquery nth of type"

0

jquery nth of type

The nth-of-type selector looks for element type, like div, span etc not for 
class name or any other selectors

use :eq(index)
	jQuery('.proejct-text-field:eq(0)')

or .eq(index)
	jQuery('.proejct-text-field').eq(0)

If first element 
	jQuery('.proejct-text-field').first()

else if last element
	jQuery('.proejct-text-field').last()
Posted by: Guest on April-07-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language