in jade view
div(id='new_product_dialog',title='new',class='dialog')
div#basic_info_wrapper
div#new_product_thumb
form(id='basic_info',method='post',action='/product/add')
input(id='shop_id',type='hidden',name='shop_id',value='')
p(class='form_label') name
input(type='text',name='product_name',class='new_product_input')
p(class='form_label') price
input(type='text',name='product_price',class='new_product_input')
p(class='form_label') category
select(id='select_category',name='product_category')
option
option(value='new_cate') new category
p(class='form_label',id='new_cate_label') new category
input(id='new_cate_input',type='text',name='product_category',class='new_product_input')
div(id='video_wrapper',class='media_wrapper')
input(type='file',name='product_video',style='display:none',id='input_product_video')
div(id='image_wrapper',class='media_wrapper')
input(type='file',name='product_image',style='display:none',id='input_product_image',multiple)
when i remove the first hidden input
input(id='shop_id',type='hidden',name='shop_id',value='')
i get this weird error in firebug says
f[e] is undefined
(17 out of range 2) jQuery-v1.8.2.js (line 17 )
i tried everything and find out the 'id' must be set to shop_id, otherwise the error remains, and am sure i did not init the form somewhere else.
help please!!!