Data From HTML -> JS To Send data

Hi, I'm Yeon

Data From HTML -> JS To Send data

Is there any other way to send it besides the input element?

For example, as shown in the picture below,
Instead of using input elements, you can use the
I would like to send the value of the P tag as an object to JS




You need something to trigger - a button is most common though a link can work too. In fact you can make most tags take a click but you should put a tabindex attribute on non-input tags so that users can navigate via the keyboard.

You can also pick up "values" from other tags but not using the val function because that is only for input fields. You would have to grab the text. $('#xxxx').text().

1 Like

Thank you very much. TotallyInformation!

I'll do it that way.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.