jQuery – very very newbie

jQuery detect user-interactivity by “Event” when user “click”,”mouseIn”, “mouseOut” …blah..blah..blah

http://api.jquery.com/category/events/

How to debug when coding  jQuery or JS ?

just use : console.log(x);     x is element you want to track. May be $(‘#id’), $(‘.class’)… User console tab in FireBug to find it

and : alert(y);  y is more detail then x. Maybe include val, status v.v…

 

Advertisement

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 )

Connecting to %s