EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #02907
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: Simple(?) eprints make_element question
- To: "'eprints-tech@ecs.soton.ac.uk'" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] Re: Simple(?) eprints make_element question
- From: David McElroy <D.Mcelroy@uel.ac.uk>
- Date: Wed, 16 Apr 2014 13:15:53 +0000
I’m talking rubbish, that is correct html! Sorry and thanks for the help!
From: eprints-tech-bounces@ecs.soton.ac.uk
[mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of John Salter I think you need to do: my $option = $session->make_element( 'option', value=>"value1" selected=>"selected"); Cheers, John From: eprints-tech-bounces@ecs.soton.ac.uk
[mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of David McElroy Hi List, I’m doing some work on a theme for our new repository, and I’m adding a <select> drop down form. I’m using: my $select = $session->make_element( 'select', name=>"select_name”); and my $option = $session->make_element( 'option', value=>"value1"); to get: <select name="select_name"> <option value="value1">value1</option> <option value="value2">value2</option> </select> And I’d like to be able to add a ‘selected’ to one of the options. So it renders like this: <select name="select_name"> <option value="value1" selected>value1</option> <option value="value2">value2</option> </select>
Thanks, David McElroy Research Data Management Officer University of East London Docklands Library University Way London E16 2RD telephone: 020 8223 6467 twitter: davidlmcelroy This message has been scanned by the UEL anti-spam filters hosted by
Websense |
- References:
- [EP-tech] Simple(?) eprints make_element question
- From: David McElroy <D.Mcelroy@uel.ac.uk>
- [EP-tech] Re: Simple(?) eprints make_element question
- From: John Salter <J.Salter@leeds.ac.uk>
- [EP-tech] Simple(?) eprints make_element question
- Prev by Date: [EP-tech] Re: Simple(?) eprints make_element question
- Next by Date: [EP-tech] Re: Simple(?) eprints make_element question
- Previous by thread: [EP-tech] Re: Simple(?) eprints make_element question
- Next by thread: [EP-tech] Re: Simple(?) eprints make_element question
- Index(es):