Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

set Index of ajaxcombox via jquery !

$
0
0

Hello Experts 

I have a combobox in a page , after loading a page i am fatching preivously selcted values from Cookies via jquery 
and i want to select that value in combobox .


actualCount = -1;
//get all comboBoxes
var inputCount3 = parseInt($.cookie("cookieInputCount3"));
var inputCSV3 = $.cookie("cookieInputCSV3");
if (inputCount3 > 0 && inputCSV3 != '') {
actualCount = $("#innerPopup .ajax__combobox_textboxcontainer").find('input').length;
if (actualCount == inputCount3) {
var arr3 = inputCSV3.split('Ø'); //Alt +0216
$("#innerPopup .ajax__combobox_textboxcontainer").find(":input").each(function (index) {
// console.log(arr3[index]);
debugger;


$(this).val(arr3[index]);

//set hidden field
$(this).parent().parent().parent().parent().parent().find('input:hidden').val(2)


});
}
}




I tried to addvalue in textbox as well as hidden field but nothing is happeninI have no luck so far

Please help! 


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>