Click here to Skip to main content
15,920,708 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
ok, there is a number on my web page: id="l1" class="value ">412/1200
the number i want is 412. however, this number can change. i want to get this number and input it into a label's text. does that make sense? i just dont know how to word this question properly.. thanks.
Posted

1 solution

I believe what you want is to retrieve the number before "/". If it so, try using regex in javascript. Once you get the value you can easily set it to the label using javascript.
Hope that helps.
 
Share this answer
 
Comments
vlad781 8-Jun-11 3:53am    
welp, im using C#, unless i can use javascript in C#, sorry. i dont even know java....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900