I'm trying to retrieve the href link from links(by class) and convert them to onclick
but I only get one(first one)
I know there's a part to use each in jquery,but can't make it work
Maybe,since you're not jquery illiterate

I have 2 seperate links with normal href links,
Following is temp(onmouseover) code to see if the var shows-up and changes;
Code: Select all
function callUrl(){
$('.style1').each(function (){
var myUrl =$('a').attr('href');
$("#Editbox1").val(myUrl)
});
}