javascript - loop and grab href links info -


  & lt; p वर्ग = "पृष्ठ" id = "datapage" & gt; & Lt; strong & gt; 1 & lt; / strong & gt; & Lt; एक वर्ग = "पग-कूर" href = "ब्लाहब्ला; पृष्ठ_नाम = 2" & gt; 2 & lt; / a & gt; & Lt; एक क्लास = "पेग-कर्र" href = "ब्लॉब्लै; पेज_नाम = 3" & gt; 3 & lt; / a & gt; ... पृष्ठ संख्या 10 से ऊपर & lt; एक वर्ग = "पग-अगला" href = "ब्लाहब्ला; पृष्ठ_नाम = 2" & gt; & Lt; strong & gt; अगले & amp; nbsp; »& lt; / strong & gt; & Lt; / a & gt; & Lt; / p & gt;  

मैं संख्याओं की संख्या प्राप्त करने के लिए href class = "pag-curr" लूप करना चाहता हूं और उनकी सापेक्ष href जानकारी प्राप्त करना चाहते हैं (जैसे.ब्लॉब्ला; पृष्ठ_नाम = 2 .. आदि) , मैं इसे जावास्क्रिप्ट या jquery के साथ कैसे प्राप्त कर सकता हूं?

  $ ("। ") .each (फ़ंक्शन () {var hrf = $ (this) .attr (" href ");});  

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -