Skip to content

Instantly share code, notes, and snippets.

@scooler
Created May 31, 2012 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scooler/2845727 to your computer and use it in GitHub Desktop.
Save scooler/2845727 to your computer and use it in GitHub Desktop.
Changing selectors
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js" type="text/javascript"></script>
<script src="https://raw.github.com/rails/jquery-ujs/master/src/rails.js" type="text/javascript" ></script>
<script type="text/javascript">
$( function(){
$.rails.linkClickSelector = $.rails.linkClickSelector+", b"
});
</script>
</head>
<body>
<b data-method="delete" data-remote="true" href="http://localhost:3000/test">Click me</b>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment