Welcome Guest, Not a member yet? Register   Sign In
How To change Content using onChange=“submit()” in from
#1

[eluser]ebrahimthex[/eluser]
Need a jQuery....
I have 2 type of content in <i> div</i>. Default View BDT-div, Now I want to change Content Using Select Option. Use. jquery-1.7.2.min.js
[removed]
Code:
$(function () {
                var currencySelect = $('select');

                $('#' + currencySelect.val()).show();

                currencySelect.change(function () {
                    $('div.tabWrapper').hide();
                    $('#' + $(this).val()).show();
                });
            });
HTML Form:
Code:
&lt;form method="post" action=&lt; echo base_url(); ?&gt;domain_reseller"&gt;
    <p align="right">Choose Currency:
      <select name="currency" >
        <option value="1" selected="selected">BDT for Bangladesh</option>
        <option value="2">USD For World Wide Country</option>
      </select>
    </p>
&lt;/form&gt;

This is Default Div
Code:
<div class="tabWrapper" id="BDT">
Lots of Text in Bangla Language
</div>

<div class="tabWrapper" id="USD">
Lots of Text in English Language
</div>

When I changed BDT to USD then say "The action you have requested is not allowed."
Plz check. http://russelhost.com/domain_reseller.html
#2

[eluser]TheFuzzy0ne[/eluser]
It sounds like you have an issue with CSRF protection. Either disable it, or replace:
Code:
&lt;form method="post" acti echo base_url(); ?&gt;domain_reseller"&gt;

with:
Code:
&lt;?php echo form_open('domain_reseller'); ?&gt;

Obviously, you need to load the form helper for that to work. Smile
#3

[eluser]ebrahimthex[/eluser]
[quote author="TheFuzzy0ne" date="1369317683"]It sounds like you have an issue with CSRF protection. Either disable it, or replace:
Code:
&lt;form method="post" acti echo base_url(); ?&gt;domain_reseller"&gt;

with:
Code:
&lt;?php echo form_open('domain_reseller'); ?&gt;

Obviously, you need to load the form helper for that to work. Smile[/quote]




Theme © iAndrew 2016 - Forum software by © MyBB