Author Topic:   [TUT]Echivalent addClass() pentru ID  (Read 1727 times)

0 Members and 1 Guest are viewing this topic.

Offline Hectore

  • Junior
  • *
  • Posts: 95
  • Reputation: 0
  • Gender: Male
[TUT]Echivalent addClass() pentru ID
« on: 20 June 2013, 14:03:11 »
Pentru început vă rog să citiţi topicul acesta (.ready() )
ID-ul este un atribut, deci îl puteţi adăuga cu ajutorul funcţiei attr.
Un element poate avea doar un identificator şi acest identificator trebuie să fie unic.

Code: [Select]
$0('ELEMENT').attr('id', 'noulID');
Exemplu:

Code: [Select]
$(document).ready(function() {
$('table').attr('id', 'acasa');
});


acasa, fiind noul ID. El poate fi scris în CSS sub forma: #acasa {
« Last Edit: 28 August 2014, 22:07:37 by ×X×_vasya_×X× »

Offline [SG]MonsteR.

  • :troll:
  • Legend
  • Spam Machine
  • *
  • Posts: 1585
  • Reputation: 0
  • Gender: Male
  • Don't worry, be happy.
Re: [LECTIA 3] Echivalent addClass() pentru ID
« Reply #1 on: 20 June 2013, 14:29:55 »
Misto :-/

Offline IstuntmanI

  • GZS Owner
  • Administrator
  • Cyborg
  • *
  • Posts: 15119
  • Reputation: 80
  • Gender: Male
  • Real Name: NcF http://fb.me/cnistor96
  • Steam ID: istuntmani
Re: [LECTIA 3] Echivalent addClass() pentru ID
« Reply #2 on: 20 June 2013, 17:20:41 »
Cam naspa tutorialele astea... :\

Offline Hectore

  • Junior
  • *
  • Posts: 95
  • Reputation: 0
  • Gender: Male
Re: [LECTIA 3] Echivalent addClass() pentru ID
« Reply #3 on: 20 June 2013, 17:42:36 »
Cam naspa tutorialele astea... :\

Sunt pentru incepatori , o sa incep si cu dinacelea ce o sa fie mai greu :P

Offline IstuntmanI

  • GZS Owner
  • Administrator
  • Cyborg
  • *
  • Posts: 15119
  • Reputation: 80
  • Gender: Male
  • Real Name: NcF http://fb.me/cnistor96
  • Steam ID: istuntmani
Re: [LECTIA 3] Echivalent addClass() pentru ID
« Reply #4 on: 20 June 2013, 17:45:48 »
Nu la asta ma refer, ci nu se invata prea bine ... de exemplu eu nu prea inteleg din astea, ci invat din exemple mai mari. :D Ai putea face si cateva creeati cu jQuery si sa pui un demo.

Offline Hectore

  • Junior
  • *
  • Posts: 95
  • Reputation: 0
  • Gender: Male
Re: [LECTIA 3] Echivalent addClass() pentru ID
« Reply #5 on: 20 June 2013, 22:38:56 »
Nu la asta ma refer, ci nu se invata prea bine ... de exemplu eu nu prea inteleg din astea, ci invat din exemple mai mari. :D Ai putea face si cateva creeati cu jQuery si sa pui un demo.

Ok , am sa pun , mersi de sfat !

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal