最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Use onfocus event in Contact Form 7

programmeradmin3浏览0评论

I would like to use the onfocus event on my contact form. The onfocus event essentially is used to make an API call using java-script.

So far, I've tried focus(), but this applies to every input tag, and I cannot get it to stick to the input field ID(Yes, its unique) and onclick, but this is a bit more cumbersome.

This is the field where I would want to call my API

Email Address[email* your-email id:focuseventfire class:txt class:form-control placeholder "EMAIL"]

I would like some guidance or documentation on how to make this happen or even a possible solution or even an alternative to this.to this.

发布评论

评论列表(0)

  1. 暂无评论