Opera "form" - problem

Discussion in 'HTML & Website Design' started by Sulan84, Dec 30, 2009.

  1. #1
    Hi.
    I have a form, where the submitButton isan image. IE, Safari and Firefox can handle this. But with Opera it is not working.

    here the code:
    
       	<form id="form1" name="form1" method="get" action="production.php">
             <input name="button" type="image" action="submit()"  src="images/orderButton.png" id="button" value="." style="display:none;"/>
       	</form>
    
    Code (markup):
    The style:none parameter is because jQuery fades in the button on mouseover on the parent div.

    Any ideas, how to solve this problem?
     
    Sulan84, Dec 30, 2009 IP
  2. harrierdh

    harrierdh Peon

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Action is not an attribute of the input tag. If you are trying to run a form submit from javascript (that's what it looks like) then you would use onSubmit="submit()"
     
    harrierdh, Dec 30, 2009 IP