Link to home
Start Free TrialLog in
Avatar of Rozamunda
Rozamunda

asked on

return false not working

Hi, I don't know what I am doing wrong here but return false is not working:

php:
		$id = 1;
	      $action  = 'avail';	

$availstock .= "<div >   
			<a href= '' id='1'  onclick= 'handleanchor($action,this.id); return false ' > $usav  </a>  </div>";

Open in new window


generated javascript :

8250466]
<a href="" id="1" onclick="handleanchor(avail,1);return false"> 10  </a>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of StingRaY
StingRaY
Flag of Thailand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Lee
Try:

$availstock .= "<div >   
                  <a href= '' id='1'  onclick= 'handleanchor('$action',this.id); return false;' > $usav  </a>  </div>";