im trying to change the name of a field on the change state of a select list.
I have the following code
<script>
$('#selectintrole').change(function(){
$('#proven_keyname').val($(this).val());
};
</script>
<select name="item_options" id="selectintrole">
<option value="20030">Universal (20030)</option>
<option value="4545456">Medium (4545456)</option>
<option value="15447">Large (15447)</option>
</select>
<input name="proven" value="1" type="checkbox" id="proven_keyname" />
It doesnt seem to be doing anything though ... when i check the generated source, nothing has changed .... am i missing something?
.attr('name', ...).