Skip to content

Jean-Pierre Lambelet

Il n'y a pas de questions bêtes

FREN
  • Articles
  • Categories
    • AI / LLM
    • Docker
    • Git
    • PHP
    • SQL
    • WordPress
  • About
FREN
photographe qui fait la mise au point

Andrew E Weber, CC0

jQuery

jQuery – Focus the first field

August 17, 2026August 12, 2013 by Jean-Pierre Lambelet

To focus the first field on your page, just use:

$("input:text:visible:first").focus();
Categories jQuery
CSS – Making an attribute of one class more important than another

About

Jean-Pierre Lambelet is a Swiss software engineer focused on LLMs. This blog collects tips and tutorials on generative AI and RAG chatbots, PHP and Symfony, PostgreSQL and Docker.

Recent Posts

  • An LLM crawler that said “ok” for 12 days and extracted nothing
  • Docker – pgvector – Run PostgreSQL with pgvector in Docker Compose
  • PostgreSQL – pgvector – Keep the ivfflat index when you give results a weight
  • Stopping a RAG chatbot from presenting stale information as current
  • Giving a chatbot live weather through LLM tool calling
  • FR
  • EN

Recent Posts

  • An LLM crawler that said “ok” for 12 days and extracted nothing
  • Docker – pgvector – Run PostgreSQL with pgvector in Docker Compose
  • PostgreSQL – pgvector – Keep the ivfflat index when you give results a weight
© 2026 Jean-Pierre Lambelet • RSS feed • Privacy Policy • Ads fund this blog,