a tag as a submit button?

前端 未结 6 1119
执笔经年
执笔经年 2020-12-24 01:32

Hi I am trying to get \"a\" tag as a submit button. I found a code somewhere in the web. But it didn\'t work.



        
6条回答
  •  感情败类
    2020-12-24 02:03

    Supposing the form is the direct parent you can do:

    submit
    

    If not you can access through the forms name attribute like this:

    submit
    

    See both examples here: http://jsfiddle.net/WEZDC/1/

提交回复
热议问题