Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #12563
| Message-ID | <2320572.cjzJmWOTNm@PointedEars.de> (permalink) |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Organization | PointedEars Software (PES) |
| Date | 2012-03-10 01:44 +0100 |
| Subject | Re: Setting a text field's value from a href |
| Newsgroups | comp.lang.javascript |
| References | <b3b7c94c-f902-4a41-9a6d-d40ed4090751@ud10g2000pbc.googlegroups.com> <4f5a9e46$0$2853$a8266bb1@newsreader.readnews.com> |
| Followup-To | comp.lang.javascript |
Followups directed to: comp.lang.javascript
Denis McMahon wrote:
> On Fri, 09 Mar 2012 06:18:37 -0800, Larry.Martell@gmail.com wrote:
>> I have a text field and a href. When the user click on the link I want
>> to set the text field to a value. I'm trying to do it with jQuery, but I
>> can't get it to work. I have this:
>>
>> <A href="javascript: $('filterValue').val('POR');">POR</A>
>>
>> How can I accomplish this?
>>
>> And before 100 people tell me that is not the proper way to use a link,
>> please don't. I know this, but I have a client that wants this. I told
>> them it should be a button, but they want it to be a link, and they are
>> paying.
>
> <span class="simlink" onclick="do_something">text that behaves like a
> link</span>
>
> in your css, define relevant styles for span.simlink so that it looks and
> behaves like all the other links in the document.
Probably the worst advice in this thread so far. But not unexpected.
PointedEars
--
Sometimes, what you learn is wrong. If those wrong ideas are close to the
root of the knowledge tree you build on a particular subject, pruning the
bad branches can sometimes cause the whole tree to collapse.
-- Mike Duffy in cljs, <news:Xns9FB6521286DB8invalidcom@94.75.214.39>
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Setting a text field's value from a href "Larry.Martell@gmail.com" <larry.martell@gmail.com> - 2012-03-09 06:18 -0800
Re: Setting a text field's value from a href SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-03-09 16:23 +0100
Re: Setting a text field's value from a href SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-03-09 16:30 +0100
Re: Setting a text field's value from a href "Larry.Martell@gmail.com" <larry.martell@gmail.com> - 2012-03-09 07:48 -0800
Re: Setting a text field's value from a href "Larry.Martell@gmail.com" <larry.martell@gmail.com> - 2012-03-09 07:31 -0800
Re: Setting a text field's value from a href SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-03-09 18:50 +0100
Re: Setting a text field's value from a href SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-03-09 19:01 +0100
Re: Setting a text field's value from a href Jake Jarvis <pig_in_shoes@yahoo.com> - 2012-03-09 17:59 +0100
Re: Setting a text field's value from a href Gene Wirchenko <genew@ocis.net> - 2012-03-09 09:06 -0800
Re: Setting a text field's value from a href "Larry.Martell@gmail.com" <larry.martell@gmail.com> - 2012-03-09 09:24 -0800
Re: Setting a text field's value from a href Gene Wirchenko <genew@ocis.net> - 2012-03-09 12:42 -0800
Re: Setting a text field's value from a href "Larry.Martell@gmail.com" <larry.martell@gmail.com> - 2012-03-09 13:12 -0800
Re: Setting a text field's value from a href Christian Winter <thepoet_nospam@arcor.de> - 2012-03-09 19:05 +0100
Re: Setting a text field's value from a href "Larry.Martell@gmail.com" <larry.martell@gmail.com> - 2012-03-09 10:51 -0800
Re: Setting a text field's value from a href Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-03-09 20:55 +0100
Re: Setting a text field's value from a href "Larry.Martell@gmail.com" <larry.martell@gmail.com> - 2012-03-09 13:02 -0800
Re: Setting a text field's value from a href Dr J R Stockton <reply1210@merlyn.demon.co.uk> - 2012-03-10 21:09 +0000
Re: Setting a text field's value from a href David Mark <dmark.cinsoft@gmail.com> - 2012-03-12 16:32 -0700
Re: Setting a text field's value from a href "Larry.Martell@gmail.com" <larry.martell@gmail.com> - 2012-03-13 10:07 -0700
Re: Setting a text field's value from a href David Mark <dmark.cinsoft@gmail.com> - 2012-03-13 10:43 -0700
Re: Setting a text field's value from a href "Mel Smith" <med_cutout_syntel@aol.com> - 2012-03-13 11:09 -0700
Re: Setting a text field's value from a href Gene Wirchenko <genew@ocis.net> - 2012-03-13 12:25 -0700
Re: Setting a text field's value from a href "Larry.Martell@gmail.com" <larry.martell@gmail.com> - 2012-03-13 15:18 -0700
Re: Setting a text field's value from a href Barry Margolin <barmar@alum.mit.edu> - 2012-04-25 16:53 -0400
Re: Setting a text field's value from a href Denis McMahon <denismfmcmahon@gmail.com> - 2012-03-10 00:20 +0000
Re: Setting a text field's value from a href Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-03-10 01:44 +0100
Re: Setting a text field's value from a href SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-03-10 09:58 +0100
Re: Setting a text field's value from a href David Mark <dmark.cinsoft@gmail.com> - 2012-03-12 16:33 -0700
csiph-web