javascript not working in the new part when loading a new part using jquery and HTML 5

前端 未结 4 1604
春和景丽
春和景丽 2021-01-25 07:48

Hi as my title suggest, i use the following code to dynamically load a portion of the page (here left id)

function callBackFunctionLoadNextBackInPage(data)
{
            


        
4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-25 08:14

    Try replacing onclick with jquery live() and see if it wokrs. Also your showHideDiv could be reduced to one line:

    $("#share").toggle()

提交回复
热议问题