Using jQuery

Problem is : I want to use jQuery for button.

But how ?

  1. install jQuery package.
  2. using the following ways:

Cap

 

Here is my first_page.js, and <button> is in my first_page.html(very simple code, no need to show).

In this photo, there are 2 ways, one way is “rendered”, another way is in comment, “events”.

n

 

Conclusion: we need to change the format a little bit. we cannot use original jQuery format.

By the way, this first_page.html is not template, so  i am using body, instead if templatename behind Template.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s