Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <a href="#" onclick="SelectSurveyItem('<%itemid%>', '<%itemname%>'); return false;">Select</a>
- <a href="#" onclick="SelectSurveyItem('<% JSEncode(itemid) %>', '<% JSEncode(itemname) %>'); return false;">Select</a>
- <a id="tehbutton" href="somewhereToGoWithoutWorkingJavascript.com">Select</a>
- <script type="text/javascript">//<!-- <![CDATA[
- jQuery(function($){
- $("#tehbutton").click(function(){
- SelectSurveyItem('<%itemid%>', '<%itemname%>');
- return false;
- });
- });
- //]]>--></script>
- <a id="link_1" href="foo">Bar</a>
- <a id="link_2" href="foo2">Baz</a>
- <script type="text/javascript">
- jQuery(function($){
- var l = [[1,'Bar'],[2,'Baz']];
- $(l).each(function(k,v){
- $("#link_" + v[0] ).click(function(){
- SelectSurveyItem(v[0],v[1]);
- return false;
- });
- });
- });
- </script>
- <a id="someLinkId"href="#">Select</a>
- <script type="text/javascript">
- document.getElementById("someLinkId").onClick =
- function() {
- SelectSurveyItem('<%itemid%>', '<%itemname%>'); return false;
- };
- </script>
- <a href="#" itemid="<%itemid%>" itemname="<%itemname%>" onclick="SelectSurveyItem(this.itemid, this.itemname); return false;">Select</a>
Add Comment
Please, Sign In to add comment