HTML :
<div id="images" class="span9 grid-inputs">
<div class="row-fluid img_rw">
<div class="span12 clearfix">
<div class="span1"><img width="50" height="40" src="http://i.ytimg.com/vi/frcvjtgc-Iw/0.jpg"></div>
<div class="span3">
<div class="selector" id="uniform-undefined"><span style="-moz-user-select: none;"></span><select class="required" name="image_size[]" style="opacity: 0;">
<option></option>
<option value="small">small</option>
<option value="medium">medium</option>
<option value="large">large</option>
</select></div>
</div>
<div class="span7"><input type="text" value="http://i.ytimg.com/vi/frcvjtgc-Iw/0.jpg" class="text required img_url" name="image_url[]"></div>
<div class="span1"><a class="remove_img" href="javascript:"><span class="icon16 icomoon-icon-minus"></span></a></div>
</div>
</div><div class="row-fluid img_rw">
<div class="span12 clearfix">
<div class="span1"><img width="50" height="40" src="http://i.ytimg.com/vi/frcvjtgc-Iw/1.jpg"></div>
<div class="span3">
<div class="selector" id="uniform-undefined"><span style="-moz-user-select: none;"></span><select class="required" name="image_size[]" style="opacity: 0;">
<option></option>
<option value="small">small</option>
<option value="medium">medium</option>
<option value="large">large</option>
</select></div>
</div>
<div class="span7"><input type="text" value="http://i.ytimg.com/vi/frcvjtgc-Iw/1.jpg" class="text required img_url" name="image_url[]"></div>
<div class="span1"><a class="remove_img" href="javascript:"><span class="icon16 icomoon-icon-minus"></span></a></div>
</div>
</div><div class="row-fluid img_rw">
<div class="span12 clearfix">
<div class="span1"><img width="50" height="40" src="http://i.ytimg.com/vi/frcvjtgc-Iw/2.jpg"></div>
<div class="span3">
<div class="selector" id="uniform-undefined"><span style="-moz-user-select: none;"></span><select class="required" name="image_size[]" style="opacity: 0;">
<option></option>
<option value="small">small</option>
<option value="medium">medium</option>
<option value="large">large</option>
</select></div>
</div>
<div class="span7"><input type="text" value="http://i.ytimg.com/vi/frcvjtgc-Iw/2.jpg" class="text required img_url" name="image_url[]"></div>
<div class="span1"><a class="remove_img" href="javascript:"><span class="icon16 icomoon-icon-minus"></span></a></div>
</div>
</div><div class="row-fluid img_rw">
<div class="span12 clearfix">
<div class="span1"><img width="50" height="40" src="http://i.ytimg.com/vi/frcvjtgc-Iw/3.jpg"></div>
<div class="span3">
<div class="selector" id="uniform-undefined"><span style="-moz-user-select: none;"></span><select class="required" name="image_size[]" style="opacity: 0;">
<option></option>
<option value="small">small</option>
<option value="medium">medium</option>
<option value="large">large</option>
</select></div>
</div>
<div class="span7"><input type="text" value="http://i.ytimg.com/vi/frcvjtgc-Iw/3.jpg" class="text required img_url" name="image_url[]"></div>
<div class="span1"><a class="remove_img" href="javascript:"><span class="icon16 icomoon-icon-minus"></span></a></div>
</div>
</div></div>
ajax を介して読み込まれた html コンテンツ。
JavaScript:
$(document).on("click", ".remove_img", function(event){
event.preventDefault();
$(this).parent('div').parent('div').remove();
});
コードはクロムでうまく機能しますが、Firefox では-NS_ERROR_XPC_NOT_ENOUGH_ARGS: Not enough arguments
エラーが発生します。多くのフォーラムやスレッドを読みましたが、解決策が見つかりません。