File tree Expand file tree Collapse file tree 1 file changed +20
-5
lines changed
Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Original file line number Diff line number Diff line change 11const description = document . getElementById ( "transaction-description" ) ;
22const amount = document . getElementById ( "transaction-amount" ) ;
3+ const income = document . getElementById ( "income-option" ) ;
4+ const expense = document . getElementById ( "expense-option" ) ;
5+ const submit = document . getElementById ( "submit-button" ) ;
36
4- function getRadioValue ( ) {
5- const selectRadio = document . querySelector ( 'input[name="type"]:checked' ) ;
6- const resultElement = document . getElementById ( "result" ) ;
7-
8- }
7+
8+ let transaction = [ ]
9+
10+ submit . addEventListener ( 'click' , function ( ) {
11+
12+ const obj1 = {
13+ descriptionValue : description . value ,
14+ amountvalue : amount . value ,
15+ type : income , expense
16+ } ;
17+ // const obj2 = {
18+ // description: description,
19+ // amount: amount,
20+ // type: expense
21+ // };
22+
23+ } ) ;
You can’t perform that action at this time.
0 commit comments