Welcome Guest, Not a member yet? Register   Sign In
jQuery Content Change Using onChange="submit()" Problem.
#1

[eluser]ebrahimthex[/eluser]
Start by giving both DIVs the same class, perhaps "currency", and i make the value of the OPTIONs the same as the id of the DIVs:
Code:
<form method="post" acti base_url();?>domain_reseller.html">
    <p align="right">Choose Currency:</p>
    <select name="currency" >
        <option value="BDT" selected="selected">BDT for Bangladesh</option>
        <option value="USD">USD For World Wide Country</option>
    </select>
&lt;/form&gt;
<div class="currency" id="USD">
    This Is USD Currency in domain name from DB and Lot's of Content.
</div>
<div class="currency" id="BDT">
    This Is BDT Currency in domain name from DB and Lot's of Content.
</div>

Then in CSS hide the currency div by default:
Code:
div.currency {
    display: none;
}
Then using jQuery display the currently selected currency,
//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
Code:
var currencySelect = $('select');
$('#' + currencySelect.val()).show();
currencySelect.change(function () {
    $('div.currency').hide();
    $('#' + $(this).val()).show();
});

When I change BDT to USD then Say This Message

Quote:An Error Was Encountered

The action you have requested is not allowed.

Now What Can i do? or How Can i change without Refresh page.?
Plz check <a href="http://russelhost.com/domain_reseller.html" alt="Cheap Domain Reseller">Domain Reseller</a>
#2

[eluser]TheFuzzy0ne[/eluser]
This issue is being dealt with here: http://ellislab.com/forums/viewthread/235576/

Please don't double-post, it makes more work the the volunteers trying to help you, and also makes us less likely to want to help you.




Theme © iAndrew 2016 - Forum software by © MyBB