1 Replies - 221 Views - Last Post: 15 September 2019 - 02:36 AM

#1 creatura_n   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 15-September 19

Copy displayed data from table and auto insert into input text

Posted 15 September 2019 - 12:14 AM

I have looking for a javascript that picks data (allready displayed in a TD where i dont have access to database) and auto insert it to a input type="text" if value more then 64 press enter twice

This is the TD that display the data

<td style="font-size:40px;" id="premium_exchange_stock_wood" class="center">0</td>


And this is the input where it should insert the data displayed

<input type="text" name="buy_wood" class="premium-exchange-input" data-resource="wood" id="premium_exchange_stock_wood" disabled="">


Even if the input is disabled, when value higher then 0 its displayed in TD , it will became enable!

Im not so good in javascript, do you guys think its posible what i need? without having access to database?

I would really apreciate your effort!

I haven't tryed anything because im not really good in javascript

Is This A Good Question/Topic? 0
  • +

Replies To: Copy displayed data from table and auto insert into input text

#2 andrewsw   User is offline

  • never lube your breaks
  • member icon

Reputation: 6833
  • View blog
  • Posts: 28,344
  • Joined: 12-December 12

Re: Copy displayed data from table and auto insert into input text

Posted 15 September 2019 - 02:36 AM

You need to make an attempt, we aren't here to write code for you. If you aren't good with JS then you need to study, or pay someone.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1