Tuesday, December 23, 2014

Location of JDK 17 on mac

If you are looking for the location of JDK 1.7 after installing run this command in terminal
/usr/libexec/java_home -v 1.7
This will give you the location of JDK.
If you are looking for another version just change the version code at the end.

This is how it worked for me

Friday, December 5, 2014

How to define multiple CSS attributes in jQuery

I have been doing like this
$('#id).css('background-color': '#ffff00', );
$('#id).css('color', '#ff0000');

yes it works but Could be done like this using chaining 
$('#id).css('background-color': '#ffff00'.css('color', '#ff0000'); 

But still the better way is to do like this

$('#' + id).css({'background-color': '#ffff00','color': '#ff0000'});
#notice the curly braces Even better way is to simply change class of the element using jquery