5
7

More than 5 years have passed since last update.

jQueryでinput type=hiddenを動的追加

Last updated at Posted at 2014-10-23
  1. 属性を指定
  2. HTMLに追加
autoAddHidden.js
$(function() {
    var $hiddenInput = $('<input/>',{type:'hidden',id:vals,value:vals});
    $hiddenInput.appendTo(selector);
});
5
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
7