php - copy text from link to clipboard when clicked -
i returning values database search hyperlinked redirect search.php
. change code instead of redirecting search.php
, text of link copied clipboard when user clicks mouse , user remain on same page. easy solution appreciated. here code using.
while($row = mysql_fetch_assoc($find_parts)) { $name = $row['name']; $id = $row['id']; echo "<a href='search.php?id=$id'>$name</a><br />"; }
basically want name
copied clipboard when link clicked
i'd add comment unfortunately don't have quite enough rep yet. i'd recommend zeroclipboard. uses mix of flash , javascript , should able need.
Comments
Post a Comment