few small questions..

few small questions..

1)
well, lets say i string1 = "1".

how would i use string1 in this manner:

$(".classname*variable1*) so that i would get:
$(".classname1")

2)
how would i get the name of a html elements class/id to become a string. for example, if i click on a button with id='2', how would i turn that 2 into a string that i could use in the same way as in number 1.