Modifying this snippet for use in wordpress

Modifying this snippet for use in wordpress

I have this snippet of code

  1. success: function(data){
  2.                //create jquery object from the response html
  3.                var $response=$(data);
  4.                //query the jq object for the values
  5.                var oneval = $response.filter('#one').text();
  6.                var subval = $response.filter('#sub').text();
  7.           }

and i want to prepare it for use in the wordpress backend.How can i replace the $ with jQuery?.