Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION PHP How to add class to div
#2
not sure if I understand correctly what you're asking, but where does the <div class="potato"> come from ? When is the potato class added to this div?

PHP is not for "live editing", it can generate a html code on server, but can't edit in after displaying to user, for that you need to use Javascript (but it really depends on what you're trying to achieve, if the JS is really needed)
Reply


Messages In This Thread
PHP How to add class to div - by Riianna - 2017-06-10, 07:56:55
RE: PHP How to add class to div - by morvy - 2017-06-14, 00:04:59
RE: PHP How to add class to div - by datiswous - 2017-06-14, 06:13:52



Users browsing this thread: 1 Guest(s)