N
N
Nazar Linovetsky2015-01-21 22:46:31
JavaScript
Nazar Linovetsky, 2015-01-21 22:46:31

How to properly add numeric type (number) to jQuery Object (div element)?

In simple terms: How to add a number type inside a div using jakveri.
Analog text();
Or is it that the numeric type inside the html element is always returned as a test?

var jqueryObject = $('<div></div>').HOW_ADD_NUMBER(Number);  // ???????

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Nalomenko, 2015-01-21
@scriptroom

There is always text information inside the tags. And already you can extract it through .text() , and convert it into an integer (or fractional - depends on the task) variable using parseInt() or parseFloat()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question