在fieldset中使用img标记

时间:2015-06-12 05:35:08

标签: jquery

    var i = 1;
function radio_slide(){
    var nameval="'radio_ans_"+i+"'";
    var clsval="'field_"+i+"'";
    var radio = '<fieldset class="field_'+i+'"><table><tr><td class="main_index"><img src="a_forms/a.jpg" /><b>'+i+'. </b><select style="width: 73%;" name="radioslide_'+i+'" id=""><option value="'+i+'" selected="selected">Radio</option></select></td><td><input type="button" name="radio_ans" onclick="add_new_ans('+nameval+');" class="ans"  value=" Answer"></td><td><input type="button" name="field_'+i+'" onclick="delete('+clsval+')" class="delete_ans"  value="Question"></td></tr><tr><td><input type="text" name="radio_question_name_'+i+'" placeholder="Question"></td><td><input type="text" name="radio_ques_rad_name_'+i+'" placeholder="Field Name"></td></td></tr><tr><th>Answer</th><th>Value</th><th>Image</th></tr><tr class="ans"><td class="index"><b>1. </b><input type="text" name="radio_answer_name_'+i+'_1" placeholder="Answer"></td><td><input type="text" name="radio_answer_value_'+i+'_1" placeholder="Value"></td><td><input type="file" class="browse_file"  name="radio_answer_image_'+i+'_1"></td></tr><tr class="ans"><td class="index"><b>2. </b><input type="text" name="radio_answer_name_'+i+'_2" placeholder="Answer"></td><td><input type="text" name="radio_answer_value_'+i+'_2" placeholder="Value"></td><td><input type="file" class="browse_file"  name="radio_answer_image_'+i+'_2"></td></tr><tr class="radio_ans_'+i+'"><td colspan=3><input style="width:100%" type="text" name="ques_desc_'+i+'" placeholder="Question Description"></td></tr><tr><td colspan=3><input style="width:100%" type="text" name="ques_footer_'+i+'" placeholder="Question Footer"></td></tr></table><input type="hidden" name="radio-total-ans-'+i+'" class="radio_ans_total_'+i+'" value="2"/></fieldset>';
    $("#frm").append(radio);
    i = i+1;
 }in actual i have this code img src is visible to me

当我在td中使用这个img标签时它没有图片img有人可以请帮助我什么是实际的语法.. src =&#34;&#34; ???

0 个答案:

没有答案