Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTML RadioButton Reference

 
Steve Dyke
Ranch Hand
Posts: 1616
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like some help on radiobutton reference.

I want to display a DIV tag block at the left and top position of a radio button when clicked.

When the radiobutton is clicked I call a js function to load and display the div tag using jQuery. What do I send or need to retreive from the DOM to set the position attributes of the DIV tag in relation the radiobutton location.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
 
Steve Dyke
Ranch Hand
Posts: 1616
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eric Pascarello wrote:http://docs.jquery.com/UI/Position


This does not help me with the jquery reference to radiobutton syntax.
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Steve Dyke wrote:
Eric Pascarello wrote:http://docs.jquery.com/UI/Position


This does not help me with the jquery reference to radiobutton syntax.


Utility script for absolutely positioning any widget relative to the window, document, a particular element, or the cursor/mouse.



 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64623
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The fact that a radio button is involved is completely moot. Why do you think that it's significant?
 
Steve Dyke
Ranch Hand
Posts: 1616
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:The fact that a radio button is involved is completely moot. Why do you think that it's significant?


I was trying to get the control name of the radiobutton to use in the .position function. I was trying to use the radiobutton name along with the array index value. I have went back and given the radiobuttons unique id values and it seems to be working as I expect.

 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was trying to get the control name of the radiobutton...


What do you mean by this? What is a "control name" ? It often helps when asking questions to speak as technically accurate as possible. Glad you got it working though.
 
Steve Dyke
Ranch Hand
Posts: 1616
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gregg Bolinger wrote:
I was trying to get the control name of the radiobutton...


What do you mean by this? What is a "control name" ? It often helps when asking questions to speak as technically accurate as possible. Glad you got it working though.


I am used to working with app development in windows environmentMS Foxpro) where each object on a form is a refered to as a control. Sorry.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic