• Cursos
  • Compilador de Código
  • Discutir
  • Preços
  • Teams
Menu
- 1

How Can i set id to div tag in body script html ? Thanks you sir.

set id to div in body html. https://code.sololearn.com/W2C6Ahv48sAg/?ref=app

dividtoinbodysethtml.
28th Jul 2021, 3:54 AM
Malick Diagne
Malick Diagne - avatar
1 Resposta
0
Use the setAttribute() div.setAttribute("id","idname");
28th Jul 2021, 4:49 AM
Mohan S
Mohan S - avatar

Costuma ter perguntas como essa?

Aprenda de maneira mais eficiente, de graça:

  • Introdução ao Python

    7.1M de alunos

  • Introdução ao Java

    4.7M de alunos

  • Introdução ao C

    1.5M alunos

  • Introdução ao HTML

    7.5M alunos

Ver todos os cursos
Quente hoje
I can't figure out how to use the getElementById code in JavaScript Code Playground, I've tried multiple times and watched YT
0 Votes
Need a personal tutor
0 Votes
Fix code
0 Votes
How can I turn my .py files to .exe files?
1 Votes
How Much RAM is Required for Object Detection Project
0 Votes
Hey ! how to install modules on this app
0 Votes
Add lua
0 Votes
Summary please??
0 Votes
Software to write and run codes
0 Votes
Is it possible to generate a certificate of completion for the Python Core course?
0 Votes