Advertisement
AndreyKlipikov

Cities Parser and SQL Creator

Feb 15th, 2014
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.24 KB | None | 0 0
  1. $('#open-city-selector dd').each(function(){
  2.     console.log("UPDATE `city` SET `url`='" + $('a',this).attr('href').toLowerCase().replace("http://", "").replace(".my-svadba.ru", "") + "' WHERE `city_id`=" + $('input',this).val() + ";\n")
  3. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement