Tuesday, July 17, 2012

Ajax – hide link after being clicked




<script type=\"text/javascript \">

var url = document.URL;
var strg = url.toString();
function StartAjax(ResultsId){
$.ajax ({
type: \"GET\",
url: \"mark.php\",
cache: false,
data: (strg),
success: function(html){
$(\"#\"+ResultsId).append(html);
**$(\"#\").hide();**
}

});

}
</script>

<br><a href=\"#\" name=\"link\" onclick=\"StartAjax(\'ResultsId\');\">Proceed</a>
<div id=\"ResultsId\"></div>


The Ajax does what it\’s supposed to do, but how do i hide the link after it\’s been clicked?






Rating: 5 out of 5 based on 3 ratings


The post Ajax – hide link after being clicked appeared first on Javascript ASK.






via Javascript ASK http://javascriptask.phpfogapp.com/ajax-hide-link-after-being-clicked.html

No comments:

Post a Comment