hi, can you help... i need this line to get working https://jsfiddle.net/hj3sm9u7/1/ it should fire up an alert whenever a button is clicked. but it doesnt work. thank you
You have your fiddle set up for pure javascript but your code is for jquery. Do you want a jquery solution?
As Sarahk said, you need to choose to use javascript or jquery to navigate the dom. In your fiddle you use jquery selector but didn't include the jquery plugin itself. But for that small functionality, you don't need to use jquery, just use javascript dom element http://www.w3schools.com/js/js_htmldom_elements.asp . Also, for the alert function, the argument is a string. Ref: http://www.w3schools.com/jsref/met_win_alert.asp
yes, it is for jquery... there is different behavior on clone method used. The click doesnt seem to work here https://jsfiddle.net/hj3sm9u7/5/ im trying to delete a row from the table.
so when you click on "[X]", that row should be removed. but the click doesnt seem to work. https://jsfiddle.net/hj3sm9u7/5/
This doesn't work because the dom with 'delrow' class are not created yet unless you add one row , so can't track the onClick event yet. The best way is to add the event listener(onClick) in the adding row event I updated your fiddle: https://jsfiddle.net/hj3sm9u7/6/