cant jquery.last() not Supported by ie
this is my code :
$('script').last().parent().html('kkkk')
but it show error in ie ,
开发者_Python百科so what can i do ,
thanks
Try $('script:last').last().parent().html('kkkk')
That seams to work.
Not sure what is your script's parent... but this works
http://jsfiddle.net/hkrAx/
Assumming you are targeting the wrapper of a <script />
tag.
精彩评论