Grant

South Africa

Jul
30
awarded Necromancer
Jul
27
revised Adding Linebreaks to text pulled from SQL
Corrected spelling and grammer
Jul
27
comment Adding Linebreaks to text pulled from SQL
This is a duplicate question: stackoverflow.com/questions/5946114/how-to-replace-r-n-with-br
Jul
26
comment Unable to receive any emails using postfix, dovecot, mysql, and virtual domain/mailboxes
I had the same problem and managed to resolve it by changing ownership of dovecot.log to vmail:dovecot - chown vmail:dovecot dovecot.log
Jul
24
comment Change form action and hidden input value on select option choice
I added: window.onload = function() { document.form.action = "myform/option1";; } now it works without changing the drop down selection as well.
Jul
24
comment Change form action and hidden input value on select option choice
If I don't change the default select option which is case 0: I get an error: "Empty string passed to getElementById()." How can I set a default value in the code above??
Jul
23
accepted Change form action and hidden input value on select option choice
Jul
23
comment Change form action and hidden input value on select option choice
I resolved this by adding a default value to the #option_dates hidden field name attribute. Thanks Ankit Chaudhary
Jul
23
comment Change form action and hidden input value on select option choice
That's the jQuery code in your answer.
Jul
23
comment Change form action and hidden input value on select option choice
@Meenash Jain I tried your code but it does nothing, doesn't give me the correct url nor the correct option_dates
Jul
23
comment Change form action and hidden input value on select option choice
What does that mean?
Jul
23
comment Change form action and hidden input value on select option choice
I amended as you suggested but the #option_dates name is not being changed. I get an error: Empty string passed to getElementById(). var element = document.getElementById( location.hash.substring( 1 ) );
Jul
23
comment Change form action and hidden input value on select option choice
Yes, my example does work for the form action, I need to also change the hidden input name as well!
Jul
23
comment Change form action and hidden input value on select option choice
@Amand no it's not a typo, I want to change the name not the value
Jul
23
comment Change form action and hidden input value on select option choice
Yes I am including the js function before the select that calls it
Jul
23
revised Change form action and hidden input value on select option choice
edited body
Jul
23
comment Change form action and hidden input value on select option choice
Added HTML structure
Jul
23
revised Change form action and hidden input value on select option choice
added 393 characters in body
Jul
23
asked Change form action and hidden input value on select option choice
Jul
15
revised Mysql UNIQUE KEY constraint - a and å are treated as the same characters
Corrected spelling and grammer
1 2 3 4 5