• Hi there,

    I am writing a blog post on my WordPress website and I need show following HTML code:

    <button type=”button” onclick=”getData()”>Get Data</button>

    Now, if I press the preview button then it’s showing me Post Not Found Error message. Very strange? If I change the onClick to something else then it’s working. So I think the issues on the onClick event.

    Can you tell me how can I solve it?

    Note: I am writing a tutorial blog about HTML, CSS, etc. I need to show a textual version of that code.

    Thank You.

Viewing 1 replies (of 1 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    What is “getData”? Where are you adding this button? Can you show us your website/ jsFiddle?

Viewing 1 replies (of 1 total)

The topic ‘Is this onClick JavaScript event is not accepting in POST section?’ is closed to new replies.