Jump to content
xisto Community
imjjss

Convert Text Before Submit Post

Recommended Posts

I have multi forms on my blog. For each form, I added a convert button to convert text in textarea before submit button. So, there are 3 jobs-- get textarea value, calculate text, replace old text with new text. The calculation is done by myfunction(), the button is coded like this:

<a onclick="myfunction()" class="button" href="java script:void(0)">Convert</a>

When click, nothing happend. I consulted the progammer of the function, he said he couldn't make it work in his blog posts either. The only way he can make it work is to set a seperate blog with only one page to display this convert tool-- that's where I found this tool.Is it because WordPress block javascript inputing in posts? or any idea to solve the problem?Regards

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.