Jump to content

Onclick won't work, need help


Imad

Recommended Posts

Hi Guys, I have this code:

 

<input type="image" alt="[b]" title="Bold"  class="rich_buttons" src="inc/images/icons/bold.png" onClick="replaceSelection(document.getElementById(\'comment\'),\'[b]\',\'[/b]\');return false;" >

 

Every time I click on the image that's suppose to add the bold tags into the textarea, it tries to submit the form. Any Ideas?

Best Regards.

 

Link to comment
https://forums.phpfreaks.com/topic/113811-onclick-wont-work-need-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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.