Fixed valhook jquery 1.9 bug + fixed set text bug

valhook can only be used with type and nodename with jQuery 1.9 instead of css classes