I have the following at html code
<a class="toolbar" onclick="javascript: submitbutton('items')" href="#">
Now i 开发者_如何转开发want that in jquery i convert it to
<a class="toolbar" href="javascript:history.go(-1)">
Any ideas
Do you mean like that?
$('.toolbar').removeAttr('onclick').attr('href','javascript:history.go(-1)');
精彩评论