ISPrincess
Programmer
I can fill in the text box within the grid in javascript with this:
So how can i do it by NOT hardcoding the index ( i am sure my syntax is incorrect):
Anyone that could correct my syntax in the second code box, Thank you!!!
PH
I was walking home one night and a guy hammering on a roof called me a paranoid little weirdo.
In morse code.
-Emo Phillips
Code:
document.getElementById('datagrid1_0_isSelected').value = '1';
So how can i do it by NOT hardcoding the index ( i am sure my syntax is incorrect):
Code:
document.getElementById('datagrid1_' + SRow.itemIndex + '_isSelected').value = ( document.getElementById('datagrid1_' + SRow.itemIndex + '_isSelected').value == '1' ) ? '0' : '1';
Anyone that could correct my syntax in the second code box, Thank you!!!
PH
I was walking home one night and a guy hammering on a roof called me a paranoid little weirdo.
In morse code.
-Emo Phillips