Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('.preview a').click(function() {
- way = $(this).children().attr("src");
- console.log(way);
- $('#main_img').attr('src', way);
- function_name();
- return false;
- });
- $('.preview a').on("click", function() {
- way = $(this).children().attr("src");
- console.log(way);
- $('#main_img').attr('src', way);
- function_name();
- return false;
- });
- $('.preview a').each(function(){ //найти все вхождения и для каждого
- $(this).on("click tap", function() { // на клик назначить...
- // PUT YOUR CODE HERE ;)
- }
- });
Add Comment
Please, Sign In to add comment