Tagged Questions

0
votes
0answers
12 views

Rails 3 - Nested select box creating double the relationships

Ok, this is bit long-winded but bear with me, it should pretty much make sense. My setup is that many Games have many Companies. I'm using a has_many :through relationship, using a model named ...
0
votes
1answer
18 views

select field in form is not sending data using php

so when i send the form with with the first option 'public' selected. the data is inserted. but when i try submitting the form with the other option selected, the ones in the for each loop. the data ...
0
votes
0answers
5 views

Echo the selected option from an array populated select form

I am building a custom plugin and have all my code sorted, my data is being saved into the database and i can retrieve it, but 2 things are confusing me. 1, when i echo back the saved data from the ...
0
votes
0answers
39 views

sending items to db MySQL from second select form

I've a problem with 2 select form and MySQL. The first one lists all items and using 2 buttons you can transfer 'n remove items on the second form. The transfer works well, I'd have to record the ...
-2
votes
0answers
42 views

JQuery UI - How create a “Slider Chain Select in a form” - ex. Select Nation-Region-City

How is possible to realize a "chain select" using the jquery UI slider like in this example? I'm a beginner in jquery, so i would probably need to get a complete script to understand how it works... ...
0
votes
0answers
28 views

Tooltip (jquery tools) + select form with IE9, 8 and 7

I am using a HTML form with inputs and selects inside a tooltip, which hides with mouseout event. In Explorer (all versions), when I try to click a option of a select, the tooltip hides. I have the ...
0
votes
1answer
44 views

Django two foreign Keys in model, how to dynamically change options?

i have two foreign keys in one table, but when i add a new record, i want that my ForeignKey "Modelo" only shows the one with the id of the ForeignKey "Marca" ... i want to create a Dynamically Select ...
0
votes
1answer
63 views

Form select method in Kohana includes “multiple” attribute in HTML if not NULL

I'm using the form::select helper in Kohana 3.2 to generate a select input with the following code (formatted for display here): form::select('id_plyta', $plyta, $plyta_selected, array('style' ...
0
votes
3answers
37 views

Form to Form jQuery

I've been working on a piece of code for a bit now. I have the bulk of the code, but the actual transfer of forms is throwing me off. $("#shrimpfrm").children().map(function() { var child = ...
1
vote
1answer
30 views

How to select which search form to use?

I'm trying to make a select box to switch from one searchform to the other, but I'm very unexperienced with HTML forms. The two options should be "Blog" and "Shop". (FYI the blog one for Wordpress ...
0
votes
1answer
36 views

How do I change the name property of a <select> depending on which <option> is chosen in another <select>?

I'm making a make/model form, with two dropdowns. When a make is selected, the model dropdown with the appropriate list of models for that make is shown and the rest of the dropdowns for the other ...
1
vote
1answer
101 views

php retrieve multiple data from mysql

I insert multiple id from my checkbox to MySQL database using php post form. In example I insert id (checkbox value table test) to mysql. Now I need a function to retrieve data from MySQL and print to ...
0
votes
2answers
59 views

reset button in form doesn't reset selection to first element because of selected keyword in HTML

I have a reset button in a form <input type="reset" value="Reset"> and some selections <select> <option value="0">A</option> <option value="10" ...
0
votes
1answer
32 views

Rails 3, HAML - how to set just a year and month for date_select?

Already some time I try to set up the date_select in my HAML template for displaying just a year and month. = date_select(:birthday, :order => [:day, :month, :year],:start_year => 1940) I ...
0
votes
2answers
31 views

CakePHP - Form->select doesn't have a wrapping div?

I'm wondering why $this->Form->select() in CakePHP 2.1 doesnt come with a wrapping div and label. Do I have to wrap it by myself like: <?php echo '<div><label ...
1
vote
2answers
41 views

Change select when use clicks on table

I need away to change the selected value on a drop down select. by default it is selected on VIC but when I click on an address in NSW i would like to have the drop down select NSW in the Drop down, ...
0
votes
1answer
55 views

jQuery Dropkick in Chrome: Dropdowns not auto-closing

Picture says 1000 words: http://d.pr/ZeBI Basically in most other browsers, when focus on the dropkick menu is lost, it closes. Or when choosing another dropkick menu, the previous / other open ...
0
votes
1answer
184 views

Chained Select with NO jQuery or Ajax

I'm using XAMPP Lite - USB Version and found that the jQuery chained select boxes scripts don't work because they rely on AJAX which is not working on my XAMPP. I have two Select boxes: ...
0
votes
2answers
55 views

setting the value of a select form with jquery

so apparently you have the following <select> <option value="0">One</option> <option value="1">Two</option> </select> $('select').val('1'); // selects ...
0
votes
1answer
45 views

Two Select Drop down boxes, the first updates the second NO AJAX

I need two drop down form boxes. Selecting content in the first one updates the second one. However I do not want to use AJAX JSON updating in the Javascript (I've found these online but can't get ...
0
votes
2answers
90 views

Jquery form onchange select values changing

I'm looking for best solution to this problem. I have a simple shop logical problem. There are 2 select elements, size and color. I want to make them dependent, on data (now it's example data, but ...
1
vote
2answers
110 views

javascript how to run the same function onLoad and onChange

I have a form that has many select menus, most of them are Yes/No and depending on the selected option, I display/hide some advanced options. One of the select menus is the following: ...
2
votes
2answers
122 views

jQuery: Change dropdown select when checkbox is checked/unchecked

I have this form: <input type="checkbox" value="First" />First <input type="checkbox" value="Second" />Second <input type="checkbox" value="Third" />Third <select ...
0
votes
3answers
87 views

Sticky form in select tag

I have problem with sticky forms with the select options. this is the code that my book is saying : <?php if(isset($_POST['submit'])) { echo ' thanks! '; $submit = $_POST['year']; } ?> ...
0
votes
0answers
69 views

hours of operation selections not working in php (using form selects & arrays)

Adding this array into one field in the database, as other content relational to each business will be included. The Array is working fine with the below, however unable to format this in a html ...
1
vote
0answers
58 views

How to select table column names in a view and pass to controller in rails?

So I am new to Rails, and OO programming in general. I have some grasp of the MVC architecture. My goal is to make a (nearly) completely dynamic plug-and-play plotting web server. I am fairly confused ...
0
votes
1answer
21 views

Input/Select Elements Misaligned When Added With jQuery

Currently I have a row of input elements with a select and another disabled one below. http://jsfiddle.net/WRWvJ/ When the user clicks on the text another is added before it. However, when the ...
1
vote
4answers
79 views

Best way to bind two select elements in a form?

What's the simplest way to bind two select elements in a form, such that the second select element has option elements related to the first choice? Is there a direct method in jQuery?
0
votes
1answer
80 views

Displaying Option Values From Concantenation In PHP Echo

hit a wall on what should be a non-issue. Have a PHP echo with two concantenations in them to populate option values for a pull-down menu in a form, with the data for the option values being pulled ...
0
votes
0answers
116 views

Fetch value from database in jqgrid select form

iam new to jqgrid. now i am trying to make a form with select form in it. my problem is i need to fetch the option value with the data from database. such as country name. let say i have this code ...

1 2 3 4 5 9
15 30 50 per page