User Profile

Collapse

Profile Sidebar

Collapse
shrutib
shrutib
Last Activity: Apr 17 '13, 09:32 AM
Joined: Mar 26 '13
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • shrutib
    replied to Swap values of Drop Down List
    Below is the ruby code and javascript. On mouse up, i am getting the existing selected text value. On change, the other selected text value. I want the existing text value inside changeOrder function. Where am i wrong?Please correct me.

    Code:
    <script type="text/javascript">
    var currentVal;
    function getCurrentVal(selectItem)
    {
    currentVal=selectItem.options[selectItem.selectedIndex].text;
    ...
    See more | Go to post
    Last edited by shrutib; Apr 8 '13, 03:22 PM. Reason: script end was missing

    Leave a comment:


  • shrutib
    started a topic Swap values of Drop Down List

    Swap values of Drop Down List

    Hello All,
    I have list of DropDownList of items fetching from database, all have values of 1,2 and 3...
    DropDownList1 has a selected value of 1
    DropDownList2 has a selected value of 3
    DropDownList3 has a selected value of 2
    What I want is to swap values. It's urgent please help.
    i.e. if I selected number 2 in DropDownList1, DropDownList3 should select 1 automatically.
    Using Ruby on Rails to fetch the...
    See more | Go to post

  • Hello,
    I am able to view the selected one. Now my problem is i want to swap the drop down values on change. For example
    drop down 1 - value selected 1
    drop down 2 - value selected 2 and so on. If i change drop down 1 to value 2 , drop down 2 value should change to 1 automatically(s wapping). What should i do to achieve this?Please help.
    Code:
    [LEFT]<select id="order_of_display" name="order[display]" onchange="swap();">[/]
    ...
    See more | Go to post

    Leave a comment:


  • shrutib
    started a topic Arranging/swapping drop down box values

    Arranging/swapping drop down box values

    Hello All,
    I am having the drop down list with count 1 to 10 which is looped for itemlist. For item 1 dropdown list shows count 1 to 10,item 2 also dropdown list shows count 1 to 10 and so on. I want to preset the value for the drop down list which should display on page load like for item 1 drop down value count set to 1, for item 2 drop down value count set 2.. and so on. How can i acheive this please let me know. Code is attached for...
    See more | Go to post
No activity results to display
Show More
Working...