nth-of-type(-n+3) in jquery code example
Example: 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()