PVA – Archives

Sưu tầm những bài viết hay trên internet…

Tag Archives: jquery

Cách bắt sự kiện trên từng button (jQuery)

Giả sử tớ có 2 link (hoặc button) làm thế nào để bắt sự kiện click trên mỗi link. <a href=”#”>Xoa1<input type=”hidden” name=”id” value=”1″/></a> <br/> <a href=”#”>Xoa2<input type=”hidden” name=”id” value=”1″/></a> Tớ sử dụng thuộc tính currentTarget  của đối tượng event trả về một DOM Element chính là link được nhấn. $(‘.delete’).click(function(event) { alert(event.currentTarget.getElementsByTagName(“input”)[0].value.toString()); });

Using jQuery UI with Google AJAX API

From: http://blog.robbychen.com/2010/03/16/using-jquery-ui-with-google-ajax-api/ jQuery UI is an User Interface library based on jQuery JavaScript framework. It has cool effect such as make the layers on the web pages draggable and resizable, add dialogs to the page, and add auto-complete feature onto the page. Recently, I noticed that some websites use Google to get the jQuery framework [...]

Follow

Get every new post delivered to your Inbox.