Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed val example
  • Loading branch information
kraih committed Dec 7, 2014
1 parent 1bcd622 commit fc0f89b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Mojo/DOM.pm
Expand Up @@ -882,9 +882,9 @@ C<selected> attribute and extract their values.
# "d"
$dom->parse('<option>d</option>')->at('option')->val->first;
# "e,f"
$dom->parse('<select><option>e</option><option>f</option></select>')
->at('select')->val->join(',');
# "e"
$dom->parse('<select><option selected>e</option></select>')
->at('select')->val->first;
=head2 wrap
Expand Down

0 comments on commit fc0f89b

Please sign in to comment.