コード例 #1
0
	function bindRemoveTerritoryButtons() {
		//remove territory click handler
		$('.removeTerritoryLink').bind('click', function(event) {
			$(this).parent().remove();
			return false;
		});
	}

	// update form because the location has changed
	function formLocationUpdate() {
		var reseller_location = $('input:radio[name=rb_location]:checked').val();
		if (reseller_location == 'int') {
			//populate international form input fields
			$('#eliteformInputField').load('assists/form_elite.php', {us: 0 <?php 
$myReseller->printjQueryElite();
?>
 });
			$('#catalogformInputField').load('assists/form_catalog.php', {us: 0 <?php 
$myReseller->printjQueryCatalog();
?>
 });
			$('#distributorformInputField').load('assists/form_distributor.php', {us: 0 <?php 
$myReseller->printjQueryDistributor();
?>
 });
			$('#specialistDealerInputField').load('assists/form_specialistDealer.php', {us: 0 <?php 
$myReseller->printjQuerySpecialistDealer();
?>
 });
			$('#countryFormFields').load('assists/form_countries.php', {us: 0 <?php