Marketplace

Filters: Reset
'; element_html += ''; return element_html; } function remove_selected_tld_from_list(tld_name) { selected_other_tld_arr = document.getElementById('all_user_selected_tld_to_search').value.split(','); // remove duplicate tld from array if any selected_other_tld_arr = selected_other_tld_arr.filter( function( item, index, inputArray ) { return inputArray.indexOf(item) == index; }); // close icon of tld tag clicked , remove specified tld from array/list if ( $.inArray(tld_name, selected_other_tld_arr) > -1 ) { selected_other_tld_arr.splice(selected_other_tld_arr.indexOf(tld_name), 1); var all_user_selected_tld_to_search = selected_other_tld_arr.join(","); document.getElementById('all_user_selected_tld_to_search').value = selected_other_tld_arr.join(","); } // clean comma seperated tld's string after removal of user-selected tld document.getElementById('all_user_selected_tld_to_search').value = clean_input_str(document.getElementById('all_user_selected_tld_to_search').value); var return_arr = getShowHideDivId(); var divElementToShowList = return_arr[0]; var divElementToHideList = return_arr[1]; $(".searchingAllTldDiv").hide(); // For 'Select all' link data $("."+divElementToShowList).show(); // for tld searched & added tags with limit 7 tags $("#"+divElementToHideList).hide(); // for tld searched & added tags with large number of tld tags $("."+divElementToShowList).html(""); $("#"+divElementToHideList).html(""); // create tag-list after any tld tag removed by user $('.'+divElementToShowList).append(createHtmlOfSelectedTldTags(divElementToShowList)); // update on tld removed from list - in drop-down to show plus sign var tld_name_id = tld_name.replace(/\./g, '_'); // replace used for tld name like .com.uk , net.au etc element_id = tld_name_id; // unique name for new element id // remove tag from list of selected tld's $("#searchingother_"+element_id).remove(); // add + icon in drop-down $('.addicon_'+element_id).removeClass('fa-minus').addClass('fa-plus'); var func_param_str = "'"+tld_name+"'"; // add onclick event on + sign to which will add selected tld to list $('.addicon_'+element_id).removeAttr('onclick'); $('.addicon_'+element_id).attr('onclick', 'add_selected_tld_to_list('+func_param_str+');'); // add event on tld name as well $('.add_tld_'+element_id).removeAttr('onclick'); $('.add_tld_'+element_id).attr('onclick', 'add_selected_tld_to_list('+func_param_str+');'); // check tld checkbox if present in Recommended TLD drop-down $('#recomm_'+element_id).prop('checked', false); // add event on check-box name as well $('#recomm_'+element_id).removeAttr('onclick'); $('#recomm_'+element_id).attr('onclick', 'add_selected_tld_to_list('+func_param_str+');'); // add event on tld name in front-of check-box as well $('#recomm_tldname_'+element_id).removeAttr('onclick'); $('#recomm_tldname_'+element_id).attr('onclick', 'add_selected_tld_to_list('+func_param_str+');'); // no more tld tags selected , remove table structure from div if(document.getElementById('all_user_selected_tld_to_search').value === ''){ clearDivHtmlAndHide('searchingotherTldShortList'); clearDivHtmlAndHide('searchingotherTldBigList'); } } function add_recomm_tld_to_tag_list(tld_name) { add_selected_tld_to_list(tld_name); } function remove_recomm_tld_to_tag_list(tld_name) { remove_selected_tld_from_list(tld_name); } function clearDivHtmlAndHide(DIV_ID) { $("#"+DIV_ID).html(''); $("#"+DIV_ID).hide(); } function createListOfSelectedRecommndedTld() { var tld_list_str = ""; $(".eachRecommendedTld").each(function() { tld_list_str += (this.checked ? $(this).val()+',' : ''); }); return tld_list_str; }
Recommended (17)
Show:        
Buy it now price: From $ To $
Max Characters:
Exclude: