Question: Prior to Rails 3, I used this code to observe a field dynamically and pass the data in that field to a controller:

```
    <%= observe_field :transaction_borrower_netid,
    :url => { :controller => :live_validations, :action => :validate_borrower_netid },
    :frequency => 0.5,
    :update => :borrower_netid_message,
    :with => "borrower_netid" %>

```

I'm trying to update that code to work with Jquery and Rails 3, but I can't get it to work. I updated my **routes.rb** to include

```
  match "/live_validations/validate_borrower_netid" => "live_validations#validate_borrower_netid", :as => "validate_borrower"

```

and I'm trying to observe the field and make the necessary calls with:

```
    jQuery(function($) {
  // when the #transaction_borrower_netid field changes
  $("#transaction_borrower_netid").change(function() {
    // make a POST call and update the borrower_netid_message with borrower_netid
    $.post(<%= validate_borrower_path %>, this.value, function(html) {
        $("#borrower_netid_message").html(html);
    });
  });
})

```

but it's not working. My Javascript and Jquery skills are severely lacking, so any help anyone could provide would be much appreciated. Thanks!

Answer: 
Assuming you have already built the URL in the way you have specified, you can break the id field based on the comma and extract the real id and lang field

```
$urlPieces = explode(",", $_GET['id']);
$id = $urlPieces[0];
$lang = $urlPieces[1];

```
```
$id = $id . ',' . $lang;
<a href="?<?php echo $id; ?>">

```