aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes Help with JavaScript Drop Down Box Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Help with JavaScript Drop Down Box" Watch "Help with JavaScript Drop Down Box" New topic
Author

Help with JavaScript Drop Down Box

Diane McKeaveney
Greenhorn

Joined: Nov 21, 2003
Posts: 8
Hi

I have a drop down box in a table and when the user adds a new row i want to make this row read only and make the new row editable. i have this working fine usin readonly but this is not working for the html-select field i have.

I have tried making this select box disabled instead of read only but then my data is not saved in the submit of the form. I am also unable to call a fucntion to enable this in the submit of the form as this is in a tile and would break my other tiles on the page. Is there anyway to stop a user from changing the selected value in the box without disabling it?

Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56229
    
  13

Please take the time to choose the correct forum for your posts. This forum is for questions on JSP.

This post has been moved to a more appropriate forum.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56229
    
  13

Some ideas:

1) Remove all but the selected option from the select element. That way, they cannot change it and it will still be submitted. Kind of a weird interaction though.

or, less weird:

2) Replace the select box with a plain text display of the selected value and a hidden input that reflects and submits the selected value.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Help with JavaScript Drop Down Box
 
Similar Threads
Strus 1.1: Dropdown select with reset and multi-page form in session
Help with JavaScript Drop Down Box
Dependent drop down boxes with javascript
Submit dynamically created form using jQuery Form plugin
Dynamic Drop down based on another value in the same form