-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No value returned as default ? #170
Comments
You should be retrieving the |
Hello. |
Le 19/05/2013 03:26, Greg Franko a écrit :
example of what works in any case JS by collecting form name JS by collecting id Hope this can help |
Could you create a jsbin or jsfiddle showing the issue you are having? The |
Le 20/05/2013 00:40, Greg Franko a écrit :
I understand that what I report is surprising, I don't understand it myself. I spend too more time on this bug, I still have work to do. As I've |
Hello. I wrote you about a week ago about issue #170 in selectboxit, asking for What bugged me is that some selectboxits worked fine, and not others, Can you have a look at this problem ? By the way I've finished to code my new project, everything works fine, Thank you. |
Hello. |
@badulesia It looks like the normal select box behavior does not return a value when a |
Hello. The size attribute is important in my case because I use boxits inside a I'm waiting for your next release. Badu. |
I just released SelectBoxIt v3.6.0, which removed the |
Hi.
I post a form containing a selectboxitmenu. I don't click on the selectmenu, expecting it to return the first line as selected one. Nothing is send. I must click, open, select a line in order to have a value returned.
I click on a button to execute this as debug code
form = document.forms['someform']; idx = form.selectmenu.value; alert(idx);
nothing is returned as default. If the selectmenu is opened and clicked a value is returned as expected.
To bypass this, I use :
form = document.forms['someform']; idx = form.selectmenu.value; if (!idx) idx = form.selectmenu.options[0].value; alert(idx);
Notice that the selectedIndex attribute also returns nothing.
The first line of the menu seems not to be returned as default one if the menu is not clicked. Can you check this please ?
PS : the selectmenu has no option set. I add it a class ".boxit" and then simply
$(".boxit").selectBoxIt();
'The text was updated successfully, but these errors were encountered: