Click here to Skip to main content
15,890,527 members

Comments by Murali Gowda (Top 21 by date)

Murali Gowda 9-Feb-18 10:15am View    
Sure, will do it now. Thansk you :)
Murali Gowda 7-Feb-18 8:07am View    
You have code like this
if(starflag=="1"){
return '<img src="wcp/theme/default/icon/action/star_icon1.png" />';
}

change it like this
if(starflag=="1"){
return '<img src="wcp/theme/default/icon/action/star_icon1.png" onclick="test()" />';
}
Murali Gowda 7-Feb-18 8:01am View    
Attache a click event to the img tag, that should make the things work.
Murali Gowda 7-Feb-18 7:57am View    
Just clear the textbox values at the end of click event.
$('#save').click(function() {
...//existing code
$("input[name='job_title']").val("");
$("input[name='from']").val("");
$("input[name='to']").val("");
$("input[name='total experience']").val("");
$("input[name='industries']").val("");
});
Murali Gowda 7-Jan-16 1:26am View    
What is your object structure?
Is it like,
item=[{Age:3,Altered:false,HintingNumber:null,Sex:"N"},
{Age:5,Altered:false,HintingNumber:null,Sex:"M"}]

If so, then loop on item not on item.Sex

ex: $.each(item,function(I,item1){
if(item1.Sex=='N'){
$("#ddlSex option[value='" + item1 + "']").attr("selected", true);
}
});