In my application I have list of text boxes.For reflecting changes in text boxes I am calling handleChange function call. when I send third parameter(index) to function, e value becomes undefined.
Html:
<div className="col-md-2">
<Input type="select" placeholder="select"
wrapperClassName="col-xs-12" value={this.props.lang}
onChange={this.handleChange.bind(this, 'language', index)}>
<option value="en">en</option>
<option value="de">de</option>
</Input>
</div>
Call:
handleChange(name, e) {
this.state.description[0][name] = e.target.value;
this.setState({description: this.state.description});
console.log('---updated--', this.state);
}
How to send another parameter to handleChange function call on onChange event? How can I send multiple parameters?