How to set in the css on form click a yellow border appear, otherwise it disappear?

If you are asking about the yellow outline that some browsers such as Chrome applies to an input element, apply this style:

 input:focus { outline: none; }
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.