Hi
I have a code in view like below..Here I am using Control.modl
windows
<tr>
<td class="pageCALLOUT">Primary Assignee
Group</label></td>
<td>
<%= text_field "dummy_service_desk_ticket",
"dummy_primary_assignee_group", "size" => 30, :readonly
=> "readonly"
%> <a class="itillink1"
href="#pop_primary_assignee_group"
id="modal_link_primary_assignee_group_in_create">Select</a>
</td>
<td class="pageCALLOUT">Assignee</td>
<td>
<%= text_field "sd_ticket", "primary_assignee",
"size" => 30,
:readonly => "readonly" %>
</td>
<td>
<a class="itillink1" href="#pop_primary_assignee"
id="modal_link_primary_assignee_in_create">Select</a>
</td>
</tr>
As you can see there are 2 Buttons ''Select''.When i click
on the
first select a search UI comes in the modal window and the result of
search is shown on the same popup window.And when i click on one record
in the window its value will be set on the text field by javascript and
its id goet to the hiddenfield.
<%= hidden_field "sd_ticket", "primary_assignee_group_id"
%>
So my problem is when i click on the second select how can i get this
value..I tried like
<%= puts $(''sd_ticket_primary_assignee_group_id'').value
%> But
getting error.
Sijo
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---