javascript - jQuery Form submit does not respond on IE10+ only -


i use following codes submit action form:

var actionform = $('<form>', {'action': 'index.php', 'method': 'post'}).append($('<input>', {'name': 'action', 'value': 'cancel', 'type': 'hidden'})).append($('<input>', {'name': 'id', 'value': '123', 'type': 'hidden'})); actionform.submit(); 

however, code works on chrome, firefox, safari, ie, not ie10+. how come?

using jquery 1.11.

try append form body , submit

var actionform = $('<form>', {'action': 'index.php', 'method': 'post'}).append($('<input>', {'name': 'action', 'value': 'cancel', 'type': 'hidden'})).append($('<input>', {'name': 'id', 'value': '123', 'type': 'hidden'})); actionform.appendto('body').submit(); 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -