Uncaught SyntaxError: missing ) after argument lis

后端 未结 1 320
粉色の甜心
粉色の甜心 2021-01-29 08:40

Uncaught SyntaxError: missing ) after argument lis



        
相关标签:
1条回答
  • 2021-01-29 09:31

    Since you are passing a string literal as the function parameter, you need to enclose it in quotes

    <input id="CHAMPARAN_EAST" name="CHAMPARAN EAST" onclick="SearchDistict('CHAMPARAN EAST');" type="checkbox" value="34">
    

    Server side

    <input id="<%=d.DistrictName %>" name="<%=d.DistrictName %>" onclick="SearchDistict('<%= d.DistrictName%>');" type="checkbox" value="<%=d.DistrictId %>"><%=d.DistrictName %>
    
    0 讨论(0)
提交回复
热议问题