Initially i was looking for an answer to a show/hide page jumping issue. Having found an answer here: http://stackoverflow.com/questions/2024342/link-with-href-scrolls-page-to-top-when-used-with-jquery-slidetoggle, I need to understand where to put "return false" in the following code:
toggleDetail : function(obj) {
$(obj).parent().parent().next().toggleClass('hide');
$(obj).text() == 'Show' ? $(obj).text('Hide') : $(obj).text('Show');
},
and here's my call to the show/hide. The 'href="javascript:void(0);"' worked in stopping the page jumping, do i still need the 'return false'?
<a href="javascript:void(0);" onclick="VSASearch.toggleDetail(this)">Show</a>
i tried adding 'return false' to the end of each $(obj) line before the semi-colon, but that was not it.
Thank you for your assistance.