how can i get only the cheque number(AA12GH56
) not the other texts, here is my code:
HTML:
<p>your cheque number is :AA12GH56 <br /> your bank credit balance is :32,999</p>
Javascript:
$(document).ready(function(){
$('p').click(function(){
var cheque_no=$(this).text();
});
});
` and still get just the `cheque-number`.
– Blazemonger Dec 05 '11 at 13:16