WordPress.org

Support

Support » Plugins and Hacks » Plugin and and themes

Plugin and and themes

  • alkhimey

    @alkhimey

    Hello,

    I am writing a plugin that add a js listener to the comment’s form submit button. This is done by hooking the comment form_action and printing js code to the page. To recognize the buttom I use the id of the form (‘commentform’). I looked at the theme directory and noticed that this id is defined there.

    My question is, do theme makers tend to change the ids of different elemnts, or I can be shure my plugiin will work with any theme?

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • do theme makers tend to change the ids of different elemnts,

    Yes, they do.

    alkhimey

    @alkhimey

    Thank you for your reply. So what should I do if I want a bit of js being executed on client side events.

    For example I want an alert message to pop when user makes a comment (hooking the onsubmit of the form).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Plugin and and themes’ is closed to new replies.
Skip to toolbar