Refresh in a <li>

Asked

Viewed 37 times

3

I have a content inside a <li> I need to refresh her at the event onclick. But within this li there is a function in php. How would that be possible?

  • 2

    what makes a php funcition inside an html element? this makes no sense, beyond what, without seeing the code becomes more impossible to understand yet...

  • 2

    Put your code so we can help.

  • 1

    Send me the code?

  • Your question seems to have some problems and your experience here in Stack Overflow may not be the best because of it. We want you to do well here and get what you want, but for that we need you to do your part. Here are some guidelines that will help you: Stack Overflow Survival Guide in English (short version). If the help is very simple it is still possible to do in the comments.

  • Indeed, as colleagues have said, without the code it is difficult to understand. But you have to understand that Javascript runs in the PHP browser does not, and in your case PHP runs on the server and Javascript does not. PHP returns HTML that will in turn be interpreted by the browser. There is no connection between PHP and Javascript. What you are doing is printing the result of a PHP function into the HTML of <li>.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.