Home » Web Design » How to get current object reference in javascript function

Here is code for getting current Function object reference in javascript function. Here anchor html link

<a onclick="javascript:setFunctionUrl(this,'/report.htm')" class="class1" href="javascript:void(0);">Link</a>
function setDepartmentForecastUrl(obj, url) {
     alert(obj.html()); /// Alerting Current object HTML
     alert(obj.attr('class')); /// Alerting Current object Class value
     alert(url); /// Alerting Current object Url Value
     
}

Wordpress Freelancer, Joomla Freelancer Web designer Mumbai india, Wordpress web developer India, Joomla Web developer india, Outsourcing web project india mumbai

By Santosh Kori Published: October 10, 2012 Professional Freelance Website developer 5 stars based on 65 reviews Total time: 24 hour 00 min Wordpress Joomla XHTML CSS jQuery HTML5 eCommerce CSS3 ☞ Offers low cost freelance web designing, asp php asp.net web development services from Mumbai India. Freelance web designer & developer Mumbai India.

I AM NOT AVAILABLE FOR WEB DESIGN & DEVELOPMENT PROJECTS