93
rated 0 times
[
96]
[
3]
/ answers: 1 / hits: 121903
/ 12 Years ago, wed, november 28, 2012, 12:00:00
Is this code good?
var wlocation = $(this).closest('.myclass').find('li a').attr('href');
if (wlocation.prop !== undefined) { window.location = wlocation; }
or should I do
var wlocation = $(this).closest('.myclass').find('li a').attr('href');
if (wlocation.prop !== undefined) { window.location = wlocation; }
More From » jquery