views:

46

answers:

2

How to get method of form using javascript or jquery when we submit a form at client ?

A: 

In jquery if there is a form with id 'post-form', $('#post-form')[0].method

Murali VP
thanks its working
AMIT VISHWAKARMA
A: 

$("#yourformid").attr('method')

khairil
thanks its working
AMIT VISHWAKARMA