Question: > 
> **Possible Duplicate:**  
> 
> [Is there a PHP equivalent of Perl's WWW::Mechanize?](https://stackoverflow.com/questions/199045/is-there-a-php-equivalent-of-perls-wwwmechanize) 
> 
> 
> 

Anyway to do this with curl php?

```
  import mechanize
  br=mechanize.Browser()
  br.open('https://www.google.com/calendar/exporticalzip')
  br.select_form(nr=0)
  br['Email']='Username@gmail.com'
  br['Passwd']='Password'
  br.submit()
  br.retrieve('https://www.google.com/calendar/exporticalzip','exportical.zip')

```

Answer: 
Something like this:

var id = $("input[@name=radioGroup]:checked").attr('id');

?
This will return the checked value, or null if none is checked:

```
$('input[type="radio"][name*="<%= AttendedStudySessions.UniqueID %>"][checked="checked"]').val()

```